-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyphens / dashes normalization? #11
Labels
Comments
Side note: there is already an "underscore" transliteration for a similar-looking Arabic character: Line 245 in 4058138
|
We can do: string.replace(/\p{Dash_Punctuation}/gu, '-'); to cover all the dashes. Full reference: https://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt |
sindresorhus
added
enhancement
New feature or request
help wanted
Extra attention is needed
labels
May 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are many different variants which can all be normalized to
-
:https://www.compart.com/en/unicode/category/Pd
http://jkorpela.fi/dashes.html
However, to keep things simple:
https://en.wikipedia.org/wiki/Wikipedia:Hyphens_and_dashes
=>
The text was updated successfully, but these errors were encountered: