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

Regular expression syntax not documented #13

Open
mikeparker opened this issue Sep 21, 2020 · 2 comments
Open

Regular expression syntax not documented #13

mikeparker opened this issue Sep 21, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@mikeparker
Copy link

The docs say 'can be a regex' but if I give a piece of text with regex-like characters, it gets confused, e.g. terraform?ref=v0.3.0 doesn't work. Can we have an 'exact string match' option?

Different languages have different regular expression syntax and engines, can you document which you're using?

Thanks!

@jacobtomlinson
Copy link
Owner

jacobtomlinson commented Sep 22, 2020

Thanks for raising this @mikeparker.

it gets confused, e.g. terraform?ref=v0.3.0 doesn't work

As the input is a regular expression you must escape characters like ?, . and =.

Can we have an 'exact string match' option?

I would be happy to review a PR to add this feature. But I don't have time to add this myself at the moment. Sorry!

Different languages have different regular expression syntax and engines, can you document which you're using?

I've updated the README with a link to the Golang docs on regular expressions. I hope that helps!

@ghost
Copy link

ghost commented Oct 3, 2021

Have you found time to implement this feature since? Is help-wanted on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants