exp/norm: Adopt regexp to exp/regexp semantics.

R=rsc
CC=golang-dev
https://golang.org/cl/5046041
This commit is contained in:
Marcel van Lohuizen 2011-09-19 17:30:19 +02:00
parent 03178bb4ad
commit 46468357a2
1 changed files with 2 additions and 2 deletions

View 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