-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regex error when using WPAPI.discover #504
Comments
After updating from WP5.9.3 to WP6.0 I experience a similar problem.
Error is in
Related to #503 ? |
In my case, the code seems to break on the WP PHP code:
In above reduceRouteCompontens javascript the groupPattern is I guess the groupPattern is unterminated... |
Hi everyone, has same issue, using wpapi-node, solve it by patch, and try-catch for now, will wait for new updates,
Not the best solution of course. |
SyntaxError: Invalid regular expression: /^[a-zA-Z0-9-_]+)$/: Unmatched ')' at new RegExp (<anonymous>) at reduceRouteComponents (C:\project\node_modules\wpapi\lib\route-tree.js:83:3) at Array.reduce (<anonymous>) at reduceRouteTree (C:\project\node_modules\wpapi\lib\route-tree.js:182:18) at C:\project\node_modules\wpapi\lib\util\object-reduce.js:25:20 at Array.reduce (<anonymous>) at module.exports (C:\project\node_modules\wpapi\lib\util\object-reduce.js:24:3) at buildRouteTree (C:\project\node_modules\wpapi\lib\route-tree.js:200:9) at WPAPI.bootstrap (C:\project\node_modules\wpapi\wpapi.js:349:23) at new WPAPI (C:\project\node_modules\wpapi\wpapi.js:88:4) Endpoint detected, proceeding despite error...
I'm using the default route, so I don't understand why it's giving me a error.
The text was updated successfully, but these errors were encountered: