]> Cypherpunks repositories - gostls13.git/commitdiff
exp/norm: Adopt regexp to exp/regexp semantics.
authorMarcel van Lohuizen <mpvl@golang.org>
Mon, 19 Sep 2011 15:30:19 +0000 (17:30 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Mon, 19 Sep 2011 15:30:19 +0000 (17:30 +0200)
R=rsc
CC=golang-dev
https://golang.org/cl/5046041

src/pkg/exp/norm/normregtest.go

index b2d8b1ffd7c84c6342d8f0bdc71e382d1b1a6fcd..3ab10b77b66794957fb6664076d710ab8d57c6e0 100644 (file)
@@ -114,8 +114,8 @@ func (t Test) Name() string {
        return fmt.Sprintf("%s:%d", part[t.partnr].name, t.number)
 }
 
-var partRe = regexp.MustCompile(`@Part(\d) # (.*)\n`) // TODO: using $ iso \n does not work
-var testRe = regexp.MustCompile(`^` + strings.Repeat(`([\dA-F ]+);`, 5) + ` # (.*)\n`)
+var partRe = regexp.MustCompile(`@Part(\d) # (.*)\n$`)
+var testRe = regexp.MustCompile(`^` + strings.Repeat(`([\dA-F ]+);`, 5) + ` # (.*)\n?$`)
 
 var counter int