summaryrefslogtreecommitdiff
path: root/libgo/go/regexp/syntax/simplify_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/regexp/syntax/simplify_test.go')
-rw-r--r--libgo/go/regexp/syntax/simplify_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/regexp/syntax/simplify_test.go b/libgo/go/regexp/syntax/simplify_test.go
index 879eff5be7e..5d0f1dea5e7 100644
--- a/libgo/go/regexp/syntax/simplify_test.go
+++ b/libgo/go/regexp/syntax/simplify_test.go
@@ -19,8 +19,8 @@ var simplifyTests = []struct {
{`(ab)+`, `(ab)+`},
{`(ab)?`, `(ab)?`},
{`.`, `(?s:.)`},
- {`^`, `^`},
- {`$`, `$`},
+ {`^`, `(?m:^)`},
+ {`$`, `(?m:$)`},
{`[ac]`, `[ac]`},
{`[^ac]`, `[^ac]`},