You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line replaces all characters that does not match A-Za-z0-9가-힣 with the separator character.
However, we found an unwanted characters that fall under this expression, namely (U+2009).
source="foo bar"# This is "foo<U+2009>bar"String.replace(source,~r/([^a-z0-9가-힣])+/,"-")# => "foo bar"String.replace(source,~r/([^a-z0-9])+/,"-")# => "foo-bar"
The behavior is the same for the U+2010, U+2011, U+2012, etc. characters.
The text was updated successfully, but these errors were encountered:
Hi!
I found a potential bug in the following line:
The line replaces all characters that does not match
A-Za-z0-9가-힣
with the separator character.However, we found an unwanted characters that fall under this expression, namely
(U+2009).
The behavior is the same for the U+2010, U+2011, U+2012, etc. characters.
The text was updated successfully, but these errors were encountered: