camelcase requirement causes uncaught exception error with version 1.1.0 of http-proxy-middleware
See original GitHub issueFollowing the upgrade to v1.1.0 of http-proxy-middleware, my application started spamming uncaught exception errors during to an invalid regular expression: /[_.\- ]+([\p{Alpha}\p{N}_]|$)/:
Full error message:
2021-04-01 17:50:58.156 C | UNCAUGHT EXCEPTION: Invalid regular expression: /[_.\- ]+([\p{Alpha}\p{N}_]|$)/: Invalid escape
2021-04-01 17:50:58.157 C | SyntaxError: Invalid regular expression: /[_.\- ]+([\p{Alpha}\p{N}_]|$)/: Invalid escape
The invalid regular expression that this is complaining about results from the import of camelcase
(v.6.2.0). The index.js
of camelcase contains this function:
const postProcess = (input, options) => {
return input.replace(/[_.\- ]+([\p{Alpha}\p{N}_]|$)/gu, (_, p1) => p1.toLocaleUpperCase(options.locale))
.replace(/\d+([\p{Alpha}\p{N}_]|$)/gu, m => m.toLocaleUpperCase(options.locale));
};
client info
RHEL 6/7
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Errors during install of angular-cli · Issue #1560 - GitHub
I'm trying to install the webpack-version. At first I uninstalled the beta-10 version: npm uninstall -g angular-cli npm cache clean npm install ...
Read more >Disable check of camel case rule in eslint - Stack Overflow
I have a large JavaScript file with multiple eslint rule violations. I am trying to disable them and address them one at a...
Read more >PH42501: IBM CICS Transaction Server for z/OS V5 support ...
Details are provided of open source components supplied with IBM WebSphere Application Server Liberty 21.0.0.12, in support of CICS Transaction ...
Read more >http-proxy-middleware - npm
Node.js proxying made simple. Configure proxy middleware with ease for connect, express, browser-sync and many more. Powered by the popular ...
Read more >Diff - plugins/checks - Google Git
Merge branch 'stable-3.1' into stable-3.2 * stable-3.1: Fix test due to change in Gerrit core ChecksSubmitRule.Module: Demote base class to AbstractModule ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chimurai
1.1.1-alpha.1
was not working for me and actually caused my application to crash. I must’ve not called it correctly in thepackage.json
. Buthttp-proxy-middleware@1.1.1
worked for my application…everything looks great.Thanks for taking care of this.
I just could test the latest 1.1.1 version and the issue is definitely fixed in that version. Thanks!