summaryrefslogtreecommitdiff
path: root/autochomp/tests/compare/regex_fix.nb
diff options
context:
space:
mode:
Diffstat (limited to 'autochomp/tests/compare/regex_fix.nb')
-rw-r--r--autochomp/tests/compare/regex_fix.nb4
1 files changed, 4 insertions, 0 deletions
diff --git a/autochomp/tests/compare/regex_fix.nb b/autochomp/tests/compare/regex_fix.nb
new file mode 100644
index 0000000..5b7533c
--- /dev/null
+++ b/autochomp/tests/compare/regex_fix.nb
@@ -0,0 +1,4 @@
+let opt(x) = _ | x;
+let ws = [star](opt(" " . star));
+
+match [rec]("a" . opt("." . ws . rec));