Closed zozlak closed 3 years ago
The regullar expression in https://github.com/pietercolpaert/hardf/blob/master/src/Util.php#L64 doesn't match multiline values, e.g.
pietercolpaert\hardf\Util::getLiteralValue('"' . "foo\nbar" . '"');
throws an error instead of returning
foo bar
I think the fix is to add m and s flags (see here) to the regex making https://github.com/pietercolpaert/hardf/blob/master/src/Util.php#L64:
m
s
preg_match('/^"(.*)"/sm', $literal, $match); //TODO: somehow the copied regex did not work. To be checked. Contained [^]
The regullar expression in https://github.com/pietercolpaert/hardf/blob/master/src/Util.php#L64 doesn't match multiline values, e.g.
throws an error instead of returning
I think the fix is to add
m
ands
flags (see here) to the regex making https://github.com/pietercolpaert/hardf/blob/master/src/Util.php#L64: