Closed ihar-orca closed 2 years ago
Sorry for multiple commits, it seems that it's not squashed on my side
SGTM but please add a test :)
@mvdan test added
This branch cannot be rebased due to conflicts
Not sure how you ended up there. Can you try squashing and rebasing your commits?
Ah, ignore me, I can squash-merge.
In the case of pattern comparison with the multiline string, an incorrect result may occur when the matched substring appears in the not first line.
Example:
returns 1 because generated regexp
^.*/etc/apache2.*$
(interp/runner.go, func match()) is not multiline enabled. this patch adds the(?m)
flag into all autogenerated regexps in this function.