Commit 14a302e
authored
fix(chromaterm): replace alternation in lookbehinds for PCRE2 compat (#18)
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 #15
Co-authored-by: AnExiledDev <AnExiledDev@users.noreply.github.com>1 parent 94d42eb commit 14a302e
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| 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