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

Add insideCharacterClass option to prefer-d #343

Merged
merged 1 commit into from
Sep 29, 2021
Merged

Add insideCharacterClass option to prefer-d #343

merged 1 commit into from
Sep 29, 2021

Conversation

RunDevelopment
Copy link
Collaborator

@RunDevelopment RunDevelopment commented Sep 28, 2021

This fixes #341.

The new option adds 3 modes for character class elements:

  • ignore: This is the don't-care option.
  • d (default): Replace all with \d. This is the current behaviour.
  • range: Replace all with 0-9.

Copy link
Owner

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ota-meshi ota-meshi merged commit 4f41661 into master Sep 29, 2021
@ota-meshi ota-meshi deleted the issue341 branch September 29, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regexp/prefer-d: Add an option for whole \ds
2 participants