fix regressions on a[^b]*c cases

This commit is contained in:
Kyryl Melekhin
2021-08-07 16:20:46 +00:00
parent e71f2d2b46
commit e44e6a9517
2 changed files with 19 additions and 5 deletions

12
test.sh
View File

@@ -92,6 +92,10 @@ abc\\\\>
[-+]?\\\\<(0[xX][0-9a-fA-FUL]+|[0-9.]{1,}[0-9eEfFuULl]+|[0-9]+)\\\\>
[-+]?\\\\<(0[xX][0-9a-fA-FUL]+|[0-9.]{1,}[0-9eEfFuULl]+|[0-9]+)\\\\>
qwerty.*$
([a-zA-Z0-9_][^1]*[a-zA-Z0-9_])|(\\\\\$([^\$]+)\\\\\$)
([a-zA-Z0-9_][^1]*[a-zA-Z0-9_])|(\\\\\$([^\$]+)\\\\\$)
(h[^1]*b)|(\\\\\$([^\$]+)\\\\\$)
(h[^1]*b)|(\\\\\$([^\$]+)\\\\\$)
"
input="\
abcdef
@@ -185,6 +189,10 @@ world
x37247
124435.7727ULL
jjdfjk sjdjjsqwerty jdfjdfhhdhfdjjjfj jjjdf
$\"}, /* email */
$\"}, /* email */$
$ hbbbb
$ hsdhs $
"
expect="\
(0,3)
@@ -278,6 +286,10 @@ expect="\
-nomatch-
(2,16)(2,16)
(14,44)
(9,14)(9,14)(?,?)(?,?)
(0,18)(?,?)(0,18)(1,17)
(3,8)(3,8)(?,?)(?,?)
(0,9)(?,?)(0,9)(1,8)
(0,0)
"