-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Can't match case insensitive with builtins.match
#10682
Comments
fricklerhandwerk
added
the
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
label
May 15, 2024
Triaged in Nix team meeting:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-05-15-nix-team-meeting-minutes-146/45491/1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
You can't match case insensitive with builtins.match, I think nix uses ECMAScript regex which doesn't support pearl extensions like
(?i)
. In c++ you can pass additional arguments tostd::regex pattern()
to make it match case insensitive, for example:But to my knowledge you can't pass anything to builtins.match except for the pattern/expression
Describe the solution you'd like
Make
builtins.match
support the pearl extensionsDescribe alternatives you've considered
Allow passing of additional arguments to
std::regex pattern()
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: