• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mnater / Hyphenopoly / 411
100%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2020 08:25PM UTC
Jobs 1
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
411

push

travis-ci

web-flow
fix: Better word matching regex (#110)

feat: word matching regex and add substitute API

Problem:
The old implementation of word finding RegExp also matches communiqu
of the word communiqué, which can lead to mis-hyphenation.
One-step RegExp to correctly match words is not possible.
(For details see issue #109.)

Solution:
First find all words using a transpiled form of
RegExp `/[\p{Letter}]{n,}/gui`. This RegExp is quite large.
It is minimized by collecting all characters used by patterns.
Then in replacer-function test if all characters are in `lo.alphabet`.
With this words containing a char not in lo.alphabet are not
hyphenated at all. By substituting foreign characters such words
can be hyphenated.
So also add an API to substitute characters and document this API.

Notes:
This commit requires all .wasm files to be regenerated.

Fixes #109

102 of 102 branches covered (100.0%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 1 file covered. (100.0%)

206 of 206 relevant lines covered (100.0%)

43.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 411.1 16 Apr 2020 08:25PM UTC 0
100.0
Travis Job 411.1
Source Files on build 411
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #411
  • f154a367 on github
  • Prev Build on master (#397)
  • Next Build on master (#414)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc