mirror of
https://github.com/golang/go
synced 2024-11-24 22:47:58 -07:00
parent
7ffe938f08
commit
5a716206a4
@ -615,7 +615,7 @@ func CompileRegexp(str string) (regexp *Regexp, error string) {
|
|||||||
regexp.expr = str
|
regexp.expr = str
|
||||||
regexp.inst = make([]instr, 0, 20)
|
regexp.inst = make([]instr, 0, 20)
|
||||||
error = regexp.doParse()
|
error = regexp.doParse()
|
||||||
if error != nil {
|
if error != "" {
|
||||||
regexp = nil
|
regexp = nil
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user