uk.javascript.info icon indicating copy to clipboard operation
uk.javascript.info copied to clipboard

Improved the regular expression to work with Cyrillic and any other l…

Open Serge044 opened this issue 1 year ago • 0 comments

These code examples did not work properly with Cyrillic, so I proposed a solution. If it is approved, it will be also necessary to further describe it in the comments to this code so that it is clear what it is and why it is being done.

Brief explanations:

\p{L}: matches any letter (regardless of language).

u: indicates the use of Unicode.

Serge044 avatar Sep 24 '24 13:09 Serge044