to-no-case icon indicating copy to clipboard operation
to-no-case copied to clipboard

Replace RegExp's type from "var" to ES6's "const"

Open yy-zhong opened this issue 4 years ago • 0 comments

https://github.com/ianstormtaylor/to-no-case/blob/9d93bfe6c86b73bcd93d86c17d2ea28f164a967a/index.js#L12-L14

https://github.com/ianstormtaylor/to-no-case/blob/9d93bfe6c86b73bcd93d86c17d2ea28f164a967a/index.js#L35

https://github.com/ianstormtaylor/to-no-case/blob/9d93bfe6c86b73bcd93d86c17d2ea28f164a967a/index.js#L54

These Regular Expressions can be replaced with ES6's const value for better global usage and stability.

Hope you can consider this idea (>_<)

yy-zhong avatar Jun 08 '21 14:06 yy-zhong