Skip to content

Commit

Permalink
fix unhandled bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vipally committed Mar 18, 2021
1 parent ecdeda5 commit e5364e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ func compileMultiRegexps(res ...*syntax) *regexp.Regexp {
}
if b.Len() > 0 {
b.Truncate(b.Len() - 1) //remove last '|'
exp = b.String()
}
exp = b.String()
}
return regexp.MustCompile(exp)
}
Expand Down

0 comments on commit e5364e2

Please sign in to comment.