Skip to content
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

Unnecessary escape character: \A no-useless-escape #981

Closed
lintangarief opened this issue Sep 1, 2017 · 2 comments

Comments

@lintangarief
Copy link

commented Sep 1, 2017

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_|_$)/, '')

@LinusU

This comment has been minimized.

Copy link
Member

commented Sep 1, 2017

You don't need to escape the A in the regex, are you trying to match a literal A?

@feross

This comment has been minimized.

Copy link
Member

commented Apr 26, 2018

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 feross closed this Apr 26, 2018

@lock 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.
3 participants
You can’t perform that action at this time.