RunDevelopment/eslint-plugin-clean-regex

Prefere standard character sets

RunDevelopment opened this issue · 0 comments

/[0-9]/ // replace with \d
/[a-zA-Z_\d]/ // replace with \w
/[a-zA-Z_\d-]/ // replace with [\w-]
/[a-z_\d]/i // replace with \w

This rule should only affect \d\D\w\W.