-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Labels
Description
Describe the bug
One of the regular expressions in the v8-v7 tests doesn't seem to parse correctly
var re37 = /\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g;
Thrown:
SyntaxError: pcre_compile2("\s*([+>~\s])\s*([a-zA-Z#.*:\(?!))") failed: missing terminating ] for character class at "" in ./a.js:1
- The bug is reproducible with the latest version of njs.
- I minimized the code and NGINX configuration to the smallest
possible to reproduce the issue.
To reproduce
Steps to reproduce the behavior:
- JS script
var re37 = /\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g;
Expected behavior
A clear and concise description of what you expected to happen.
Your environment
- Version of njs or specific commit
./build/njs -v
0.9.1
- OS: [e.g. Ubuntu 20.04]
Ubuntu 2504