-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Regex rules with exists:0 fails #243
Comments
Hey @ghostrider-05, thank you for your contribution! this is intended. The i think you need something like a |
Ah thank you for the clarification, sorry if this has been asked before. A |
Well I would expect to have lookahead regexp instead of not_regexp. Would it be possible? |
It could be added to the documentation then 🤭😅😬 |
this is not possible because golang do not support lookaheads |
Go standard regexp doesn't support it. But you could use another lib |
yeah but i would prefer |
👍. But then the reason is what you said (and I'm fine with it) and not "go doesn't support lookahead regexp" |
I want to add a rule that does not allow files to be named
image\d+
and according to the documentationexists:0
can be used as:However, when running with this configuration all the files that are named
image\d+
are passing and files not namedimage\d+
are failing with:I thought
exists:0
would be applied as a seperate rule, so I removed the|
and tried again with the following configuration:With both images failing the test:
Is this intended behaviour? In the documentation I don't see an example with
exists:N
and regex rules so I thought it should be possible.Version:
2.3.0-beta.1
on NPMThe text was updated successfully, but these errors were encountered: