summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2021-12-20 00:31:41 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-02-28 16:56:02 +0100
commit382fb056b59c9b54e3d4bf8f2329f3bc5c7d40e0 (patch)
treef5642a3bd6775b06ac8fa74c2c60fb2097ca3fa5 /test
parent48ed5a74bdf24c630b99b063fa79b1a79c2ae5f3 (diff)
downloadlibxml2-382fb056b59c9b54e3d4bf8f2329f3bc5c7d40e0.tar.gz
Fix range quantifier on subregex
Make sure to add counted exit transitions before other counter transitions. Otherwise, we won't backtrack correctly. Fixes #65.
Diffstat (limited to 'test')
-rw-r--r--test/regexp/issue652
1 files changed, 2 insertions, 0 deletions
diff --git a/test/regexp/issue65 b/test/regexp/issue65
new file mode 100644
index 00000000..b71bc073
--- /dev/null
+++ b/test/regexp/issue65
@@ -0,0 +1,2 @@
+=>( (a|bc{0,2})){0,2} d
+ b d