summaryrefslogtreecommitdiff
path: root/src/regexp/syntax/simplify_test.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2015-10-20 11:21:21 -0400
committerRuss Cox <rsc@golang.org>2015-11-25 17:25:22 +0000
commit3aa755b8fb82c28e55938e040bdead6b7f45ae5a (patch)
tree9dda43d52b44c8ba9c1ab43fc42ba8422ac1f59c /src/regexp/syntax/simplify_test.go
parent0b55be1ba2cf1cbb84ef4292942e6532df0b22ad (diff)
downloadgo-git-3aa755b8fb82c28e55938e040bdead6b7f45ae5a.tar.gz
regexp/syntax: correctly print `^` BOL and `$` EOL
Fixes #12980. Change-Id: I936db2f57f7c4dc80bb8ec32715c4c6b7bf0d708 Reviewed-on: https://go-review.googlesource.com/16112 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/regexp/syntax/simplify_test.go')
-rw-r--r--src/regexp/syntax/simplify_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp/syntax/simplify_test.go b/src/regexp/syntax/simplify_test.go
index 879eff5be7..5d0f1dea5e 100644
--- a/src/regexp/syntax/simplify_test.go
+++ b/src/regexp/syntax/simplify_test.go
@@ -19,8 +19,8 @@ var simplifyTests = []struct {
{`(ab)+`, `(ab)+`},
{`(ab)?`, `(ab)?`},
{`.`, `(?s:.)`},
- {`^`, `^`},
- {`$`, `$`},
+ {`^`, `(?m:^)`},
+ {`$`, `(?m:$)`},
{`[ac]`, `[ac]`},
{`[^ac]`, `[^ac]`},