Commit 75728d6
authored
Replace regex which allows dubble hyphens by one that does not.
The current version disallows tripple hyphens but allows dubble hyphens. (It also seems overcomplicated)
Alternatively we can make it a negative lookbehind instead of a negative lookahead, but the complexity is much higher.
See https://regex101.com/r/Xyu0bt/1 for proof the current version matches double hyphens1 parent dafefbc commit 75728d6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
| 634 | + | |
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| |||
0 commit comments