diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-28 13:44:41 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-28 13:44:41 +0200 |
| commit | 7bd7bdad687e5f790afda6f0f22444f3a169a6b1 (patch) | |
| tree | 4cafda53c6a7aec2cd49b6b7dd3b2d488e462b0e /patches | |
| parent | 0dfb113b47d958093e6ae086c9695e5be83b24b8 (diff) | |
This was using g_regex_escape_string() which always translates a null byte
to `\0`, which is ambiguous if followed by other digits, so a null byte followed
by a digit would result in a wrong regular expression.
Actually the same could happen outside of character classes, ie. `@S/^@1/` was also broken.
Also it does not escape `-`, so the result cannot be used in character classes.
This is fixed now in a new custom implementation teco_regex_escape().
Once moving to a custom terex lexer, we won't need any of this of course
unless we want to provide a regex escaping string building construct.
We are now completely free of GRegex.
Diffstat (limited to 'patches')
0 files changed, 0 insertions, 0 deletions
