1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-14 09:11:02 +00:00
uutils-coreutils/tests
Teemu Pätsi 4ee53acad0
expr: Fix parsing negated character classes "[^a]" (#7884)
* expr: Fix regex escape logic

We have to track if the previous character was already escaped to determine
if the '\' character should be interpreted as an escape character.

* expr: Fix parsing caret (^) as character class negation token

* expr: Add tests for parsing carets in regex

* expr: Add missing semicolon

* expr: Simplify boolean assignment

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-05-04 17:35:18 +02:00
..
benches/factor chore: manual inline formatting 2025-04-08 00:23:21 -04:00
by-util expr: Fix parsing negated character classes "[^a]" (#7884) 2025-05-04 17:35:18 +02:00
fixtures test_env: Try to execute an empty file instead of . 2025-03-23 19:37:59 +01:00
uutests fixed link to repo on uutests docs 2025-04-26 18:36:21 -07:00
test_util_name.rs Merge pull request #7688 from nyurik/fmt-inline 2025-04-08 09:31:17 +02:00
tests.rs uutests: fix the doc 2025-03-29 09:28:54 +01:00