summaryrefslogtreecommitdiff
path: root/t/re
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-07-04 15:22:59 -0600
committerKarl Williamson <public@khwilliamson.com>2012-07-24 21:13:44 -0600
commit5a279aa01b85454d24e44898e581820d24e712b3 (patch)
tree24b171cfec202edfdac1e8845b57e00d5e956ea2 /t/re
parent18890cbd431f4bda6e2dfe4162b73042ac79d6ab (diff)
downloadperl-5a279aa01b85454d24e44898e581820d24e712b3.tar.gz
regcomp.c: Optimize [^\n] into \N
This optimization is a big win, as it takes less space, and completely avoids any swash hash creation, and use.
Diffstat (limited to 't/re')
-rw-r--r--t/re/re_tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/re/re_tests b/t/re/re_tests
index 5647a4d845..46332b4d62 100644
--- a/t/re/re_tests
+++ b/t/re/re_tests
@@ -1689,4 +1689,7 @@ ab[c\\\](??{"x"})]{3}d ab\\](d y - -
/[\H]/ \x{A0} n - -
/[\H]/ \x{A1} y $& \xA1
+[^\n]+ \nb y $& b
+[^\n]+ a\n y $& a
+
# vim: softtabstop=0 noexpandtab