panzerdp / voca

The ultimate JavaScript string library
https://vocajs.pages.dev
MIT License
3.6k stars 137 forks source link

Improved regular expression to match words #30

Closed panzerdp closed 4 years ago

panzerdp commented 6 years ago

The regexp that matches words works correct for most of the cases. However the regexp is too heavy because it enumerates a lot of unicode character code points.

A lighter alternative is necessary to implement.