Skip to content

Commit 5ee2420

Browse files
committed
Added test for repeated group references.
1 parent 665be6b commit 5ee2420

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/test/scala/com/github/simy4/coregex/core/CoregexParserSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class CoregexParserSuite extends ScalaCheckSuite with CoregexArbitraries {
6464
Pattern.compile("[a-z&&[^aeiou]]+[]][a-z&&aeiou&&ei]"),
6565
Pattern.compile("^(?:||)$"),
6666
Pattern.compile("<([A-Z][A-Z0-9]*)[^>]*>.*?</\\1>"),
67+
Pattern.compile("(\\d+)(\\1)+"),
6768
Pattern.compile("(?!=.{10,}).+")
6869
) ::: (if (scala.util.Properties.isJavaAtLeast(9)) {
6970
List(

0 commit comments

Comments
 (0)