Skip to content

Commit ee2f10c

Browse files
committed
remove verbose comments
Signed-off-by: Jialiang Liang <jiallian@amazon.com>
1 parent 9061987 commit ee2f10c

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

core/src/test/java/org/opensearch/sql/expression/parse/RegexCommonUtilsTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)