We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99cff0 commit ef3e01bCopy full SHA for ef3e01b
testdata/regression.toml
@@ -800,3 +800,16 @@ name = "non-prefix-literal-quit-state"
800
regex = '.+\b\n'
801
haystack = "β77\n"
802
matches = [[0, 5]]
803
+
804
+# This is a regression test for some errant HIR interval set operations that
805
+# were made in the regex-syntax 0.8.0 release and then reverted in 0.8.1. The
806
+# issue here is that the HIR produced from the regex had out-of-order ranges.
807
+#
808
+# See: https://github.com/rust-lang/regex/issues/1103
809
+# Ref: https://github.com/rust-lang/regex/pull/1051
810
+# Ref: https://github.com/rust-lang/regex/pull/1102
811
+[[test]]
812
+name = "hir-optimization-out-of-order-class"
813
+regex = '^[[:alnum:]./-]+$'
814
+haystack = "a-b"
815
+matches = [[0, 3]]
0 commit comments