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

mnater / Hyphenopoly / 411 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2020 08:25PM UTC
Files 1
Run time 0s
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

16 Apr 2020 08:24PM UTC coverage: 100.0%. Remained the same
411.1

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 %.

206 of 206 relevant lines covered (100.0%)

43.52 hits per line

Source Files on job 411.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 332
  • Travis Job 411.1
  • f154a367 on github
  • Prev Job for on master (#397.1)
  • Next Job for on master (#414.1)
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