Skip to content

Commit fc234d6

Browse files
Merge pull request #4334 from ngie-eign:fix-RETest-non-ABSL
PiperOrigin-RevId: 557122083 Change-Id: I77fb7fe99baf9cbf341ad37d4b651a0ac606b549
2 parents d76e9e0 + 77485ff commit fc234d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

googletest/test/googletest-port-test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ TYPED_TEST(RETest, ImplicitConstructorWorks) {
418418
const RE simple(TypeParam("hello"));
419419
EXPECT_STREQ("hello", simple.pattern());
420420

421-
const RE normal(TypeParam(".*(\\w+)"));
422-
EXPECT_STREQ(".*(\\w+)", normal.pattern());
421+
const RE normal(TypeParam(".*([[:alnum:]_]+)"));
422+
EXPECT_STREQ(".*([[:alnum:]_]+)", normal.pattern());
423423
}
424424

425425
// Tests that RE's constructors reject invalid regular expressions.

0 commit comments

Comments
 (0)