Turns out n.value is NaN for regexes in typescript, go figure. Just moving the two if statements is working to fix the issue. Fixes #1526
Turns out n.value is NaN for regexes in typescript, go figure. Just moving the two if statements is working to fix the issue. Fixes #1526