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: -strict #30

Open
Grinnz opened this issue Mar 5, 2018 · 2 comments
Open

Feature request: -strict #30

Grinnz opened this issue Mar 5, 2018 · 2 comments

Comments

@Grinnz
Copy link

Grinnz commented Mar 5, 2018

It would be nice to provide an option to prevent any fallback to the core regex engine, in case you want to only use PCRE2. See similar option for re::engine::RE2: https://metacpan.org/pod/re::engine::RE2#NOTES

@rurban
Copy link
Owner

rurban commented Mar 7, 2018

Indeed, thanks. Should be easy to implement.
I'm just not sure about the name. strict looks more like a pcre2 capability, which it doesn't have.

-strict => 1
Be strict, i.e. don't allow regexps that are not supported by this engine. Don't fallback to the CORE regex engine, rather error.

Maybe -no-fallback, -no-core, -only-pcre2 or -pcre2-only are better.

@Grinnz
Copy link
Author

Grinnz commented Mar 7, 2018

-no-fallback seems pretty descriptive.

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