We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
\x08
\b
In regular expressions, \b has a different meaning than in strings (where it’s equivalent to '\x08'`):
/\b/.test('\b'); // false /\x08/.test('\b'); // true
But jsesc incorrectly replaces \x08 in regular expressions with \b:
jsesc(/\x08/); // '/\\b/'
Only these single character escapes have the same meaning in regular expressions as in strings:
\f \n \r \t \v \0
Also see #11: \B, \w, \W, \s, \S, \d, \D, \cM, etc. should be preserved.
\B
\w
\W
\s
\S
\d
\D
\cM
The text was updated successfully, but these errors were encountered:
Remove broken support for regular expressions
e5873f6
It may return at some point in the future. Ref. #10 and #11.
Relevant: mishoo/UglifyJS#54 (comment)
Sorry, something went wrong.
0d54d0c
No branches or pull requests
In regular expressions,
\b
has a different meaning than in strings (where it’s equivalent to '\x08'`):But jsesc incorrectly replaces
\x08
in regular expressions with\b
:Only these single character escapes have the same meaning in regular expressions as in strings:
Also see #11:
\B
,\w
,\W
,\s
,\S
,\d
,\D
,\cM
, etc. should be preserved.The text was updated successfully, but these errors were encountered: