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 expressions in substitutions are always case-sensitive #264

Closed
nostodnayr opened this issue Nov 9, 2020 · 1 comment
Closed

Comments

@nostodnayr
Copy link

Vale 2.6.1

In a rule that's ignorecase: true, I would expect regular expressions in replacements to also be case-insensitive.

Example

Input: Select the Provision Manager and click Update Group Members.
Caught by this rule:

level      : error
message    : Use "group member", "family member", or "team member".
link       : https://support.1password.com/style-guide/#member

extends: substitution
ignorecase: true

swap:
  '(?:[^\s]*) members?': '(?:group|family|team) members?'

I'm working around this for now with (?i) prepended to the replacement value.

@jdkato
Copy link
Member

jdkato commented Nov 11, 2020

This is a regression related to 9d27844. It'll be fixed in the next release.

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