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 upUnnecessary escape character: \A no-useless-escape #981
Comments
This comment has been minimized.
This comment has been minimized.
|
You don't need to escape the |
This comment has been minimized.
This comment has been minimized.
|
This issue appears stale since it has been open for a while with no activity. I'm going to close it for now. If this is still issue, please feel free to leave a comment or open a new issue. |
feross
closed this
Apr 26, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Jul 25, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
lintangarief commentedSep 1, 2017
•
edited by feross
In this case I want to remove all symbols in the first line. But I get no-useless-escape. why this error is showing up ?
example outlet ++77 Outlet--
outletName.replace(/[^a-zA-Z0-9]+/g, '_').replace(/(\A_|_$)/, '')