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

Feature request: literal "search" option #1

Open
kylecordes opened this issue Mar 4, 2018 · 1 comment
Open

Feature request: literal "search" option #1

kylecordes opened this issue Mar 4, 2018 · 1 comment

Comments

@kylecordes
Copy link

This is a very powerful and useful package. However, sometimes it is necessary to search for strings that require unpleasant amounts of escaping to make them valid as a regular expression.

Therefore, a simple feature request:

Offer a command line option --literal or something like that, which makes the search just for the exact literal string provided, not a regular expression.

@Xotic750
Copy link
Owner

Xotic750 commented Mar 5, 2018

It should be a fairly simple task to add that option, then use RegExp.escape to escape the literal string. I'm willing to take a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants