Commit 97b4506
committed
fix(chromaterm): replace alternation in lookbehinds for PCRE2 compat
PCRE2 requires fixed-length lookbehinds. The file path regex used
`(?<=[\s(]|^)` (variable-length alternation) and the git hash regex
used `(?<=commit |merge |...)` (different-length alternatives).
Replaced with non-capturing groups containing individual fixed-length
lookbehinds that satisfy the PCRE2 constraint.
Closes #151 parent c74cce3 commit 97b4506
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
0 commit comments