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