Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upno-useless-escape: '\..' in a RegExp is useless? #883
Comments
This comment has been minimized.
This comment has been minimized.
|
Ok, I understood my error. The template literals requires the same escape treatment as normal js strings (ref). So, the correct pattern is:
This is why standard emit the error. |
RobDesideri
closed this
May 16, 2017
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RobDesideri commentedMay 11, 2017
Hi, this is the regex:
This is the warning:
The
\..pattern is intended as a literal dot . followed by a 'any single character'.Why this warning?