|
Ran
|
Files
153
|
Run time
15s
|
Badge
README BADGES
|
push
travis-ci
<a href="https://github.com/wikimedia/parsoid/commit/50885ce42">Optimize regexp used to verify UTF-8 validity PHP7 was hitting the PREG_JIT_STACKLIMIT_ERROR on large strings here, because the `*` quantifier was implicitly growing the stack for each character to allow backtracking if the match failed. Backtracking is pointless here, so use `*+` to eliminate it (and its stack usage). While we're add it, add the `D` modifier to ensure that `$` only matches at the very end of the string. Given that a trailing newline would presumably be valid UTF-8, this doesn't actually affect correctness. Change-Id: I</a><a class="double-link" href="https://github.com/wikimedia/parsoid/commit/6244b18de">6244b18de</a>
8968 of 12098 branches covered (74.13%)
14178 of 17757 relevant lines covered (79.84%)
30739.94 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|