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

Support a "Match Once" option #12

Open
thespad opened this issue Oct 21, 2020 · 2 comments
Open

Support a "Match Once" option #12

thespad opened this issue Oct 21, 2020 · 2 comments
Labels
kind/enhancement a new or improved feature.

Comments

@thespad
Copy link

thespad commented Oct 21, 2020

I have a use-case for injecting content into the of a document but the way the plugin currently works means that if you match on or then the replacement string needs to also contain or , which it then matches on again, and again. giving you an infinite loop of replacements, and the go regex parser doesn't appear to support negative lookaheads which was the only way I could think of to avoid the problem.

A "match once and stop" option would be a great addition.

@kevtainer
Copy link

We are having a hackathon right now! If you're up for it, you could submit a PR to include this feature and get a free t-shirt / sticker! If you need any help, sign up for the event and get the link for the discord server -- https://info.traefik.io/traefik-hackaethon-2020

@thespad
Copy link
Author

thespad commented Oct 21, 2020

If I had even the slightest familiarity with Go I'd happily PR it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement a new or improved feature.
Projects
None yet
Development

No branches or pull requests

3 participants