From 11c444a6fdd3ebeb225ad0170f2866e1d0d70954 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 24 Apr 2024 21:46:56 +0000 Subject: [PATCH] Add test cases where the count is equal to the index. --- tests/cases/compiler/regularExpressionScanning.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cases/compiler/regularExpressionScanning.ts b/tests/cases/compiler/regularExpressionScanning.ts index 69fcc1a8f69ed..f153631ed6d6d 100644 --- a/tests/cases/compiler/regularExpressionScanning.ts +++ b/tests/cases/compiler/regularExpressionScanning.ts @@ -9,6 +9,8 @@ const regexes: RegExp[] = [ /\0/, /\1/, /\2/, + /(hi)\1/, + /(hi) (hello) \2/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/,