ota-meshi / eslint-plugin-regexp

ESLint plugin for finding regex mistakes and style guide violations.

Home Page:https://ota-meshi.github.io/eslint-plugin-regexp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prefer long unicode class names over the short ones

fisker opened this issue · comments

Motivation

The long hand names are more readable.

Description

Same as above.

Examples

/* ✓ GOOD */
/\p{Letter}/v

/* ✗ BAD */
/\p{L}/v
/* ✓ GOOD */
 /\p{Script=Greek}/v

/* ✗ BAD */
/\p{sc=Greek}/v

Thank you for the rule suggestion! That rule sounds good to me!