Commit cab93cb
committed
Fix escaping of special chars in Flex literal regex
Correct the regex and replacement used when escaping Flex double-quoted literals. The character class was adjusted to properly include braces and the dollar sign, and the replacement was simplified to use '\\$&' (instead of string concatenation) so metacharacters are reliably escaped when converting "..." literals into escaped regex form.1 parent 9f30ca1 commit cab93cb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1361 | 1361 | | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | | - | |
| 1364 | + | |
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
| |||
0 commit comments