use the DOTALL flag

This commit is contained in:
Erik Krogh Kristensen
2020-05-26 14:41:16 +02:00
parent fd561d1ce2
commit 9b047f6f03

View File

@@ -51,10 +51,10 @@ module IncompleteHtmlAttributeSanitization {
string lhs;
HtmlAttributeConcatenation() {
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("((?:[\n\r]|.)*)=\"[^\"]*", 1) and
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("(?s)(.*)=\"[^\"]*", 1) and
(
this.getNextLeaf().getStringValue().regexpMatch(".*\".*") or
this.getRoot().getConstantStringParts().regexpMatch("(?:[\n\r]|.)*</.*")
this.getRoot().getConstantStringParts().regexpMatch("(?s).*</.*")
)
}