Open pft opened 7 years ago
The set of whitespace characters matched by \s in JavaScript is larger than in PCRE. Therefore translating \s with \s is incorrect.
\s
Looks like it should replace it with [ \t\r\n\v\f] according to https://en.wikipedia.org/wiki/Regular_expression#Character_classes. PR welcome 😃
[ \t\r\n\v\f]
The set of whitespace characters matched by
\s
in JavaScript is larger than in PCRE. Therefore translating \s with\s
is incorrect.