File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -800,3 +800,16 @@ name = "non-prefix-literal-quit-state"
800800regex = ' .+\b\n'
801801haystack = " β77\n "
802802matches = [[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 ]]
You can’t perform that action at this time.
0 commit comments