I've found the problem explained in #2.
Javascript is trying to match a \n newline and apparently my files are formatted differently. I used https://regex101.com/ to test the pattern and there it can find the match. So the fix I propose is to just ignore the \n part - there is no real reason why it is needed.
With this fix my examples work now.
Sorry, I've massively refactored the whole codebase, so not sure this still applies? I'll close it and we can re-open if you still think this is applicable.
I've found the problem explained in #2. Javascript is trying to match a
\n
newline and apparently my files are formatted differently. I used https://regex101.com/ to test the pattern and there it can find the match. So the fix I propose is to just ignore the\n
part - there is no real reason why it is needed. With this fix my examples work now.