-
Notifications
You must be signed in to change notification settings - Fork 38
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
Bug: JS warning when multiples spaces in title #154
Comments
I love javascript, but how javascript implemented // wrong
"foo foo bar".replace(' ', '_');
// wrong
"foo foo bar".replace(/\s/u, '_');
//right
"foo foo bar".replace(/\s/gu, '_') |
Wow! Indeed WTF:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace thanks the fix |
Exactly. I know the peculiarity of replace actually well, but would have remembered that regex solves my problem. I forgot about the |
Another tiny one: I figured I get a js warning (in vscode) when request title has more than one space:
Warning:
Javascript Keyword Foo_Bar Baz not allowed as name
. Haven't test it, but probably this breaks even the @ref option for following requests..On a side node: I'd expect the name conversion into lower camelcase:
fooBarBaz
!?The text was updated successfully, but these errors were encountered: