JavaScript: Fix getDelimiterMatchingRegexp to work on multi-line strings.

This commit is contained in:
Max Schaefer
2019-06-04 17:12:02 +01:00
parent a4876270ec
commit d723ab76d8
2 changed files with 7 additions and 1 deletions

View File

@@ -37,6 +37,6 @@ module Templating {
* storing it in its first (and only) capture group.
*/
string getDelimiterMatchingRegexp() {
result = ".*(" + concat("\\Q" + getADelimiter() + "\\E", "|") + ").*"
result = "(?s).*(" + concat("\\Q" + getADelimiter() + "\\E", "|") + ").*"
}
}

View File

@@ -0,0 +1,6 @@
config: |
[mail]
host = smtp.mydomain.com
port = 25
username = {{username}}
password = {{pwd}}