rstudio / r-system-requirements

System requirements for R packages
MIT License
125 stars 23 forks source link

Add test for invalid regexp patterns #187

Closed glin closed 1 month ago

glin commented 1 month ago

Test for more invalid regexp patterns using Unicode-aware mode. RegExp in JavaScript apparently doesn't check for many invalid syntax cases, but this u mode does.

$ npm test

SyntaxError: Invalid regular expression: /\libmecab\b/u: Invalid escape
    at new RegExp (<anonymous>)

Fix another escape issue with poppler.