File tree Expand file tree Collapse file tree
core/src/test/java/org/opensearch/sql/expression/parse Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ public void testExtractNamedGroupComplexPattern() {
170170
171171 @ Test
172172 public void testPatternCachingBehavior () {
173- // Test that patterns are cached and reused
174173 String regex1 = "test1.*" ;
175174 String regex2 = "test2.*" ;
176175
@@ -200,12 +199,6 @@ public void testGetNamedGroupCandidatesSpecialCharacters() {
200199 // letter)
201200 String pattern = "(?<valid_group>[a-z]+)\\ s+(?<123invalid>[0-9]+)\\ s+(?<also-invalid>.*)" ;
202201 List <String > groups = RegexCommonUtils .getNamedGroupCandidates (pattern );
203-
204- // Based on the NAMED_GROUP_PATTERN regex, only groups starting with letter and containing
205- // alphanumeric are valid
206- // The pattern is: "\\(\\?<([a-zA-Z][a-zA-Z0-9]*)>"
207- // So "valid_group" won't match because of underscore, "123invalid" won't match because it
208- // starts with number
209202 assertEquals (0 , groups .size ());
210203 }
211204
You can’t perform that action at this time.
0 commit comments