Resident about text, non-english letters. #7569
Replies: 2 comments
-
Adding `\p{L}` into the string check regex should allow those characters.
…On Sun, Aug 25, 2024, 2:29 PM SwineFeather ***@***.***> wrote:
Like the title says, I would like to set /res set about with non-english
letters like åäö. How do I achieve that?
I have tried to change regex. But didn't work.
regex:
name_filter_regex: '[\/]'
name_check_regex: ^[\p{L}*a-zA-Z0-9.
*[]-]*$ string_check_regex: ^[a-zA-Z0-9 \s.*
[]#?!@$%^&*-,*(){}åäöÅÄÖæøÆØñÑáÁéÉíÍóÓúÚýÝþÞðÐ]*$
name_remove_regex: '[^\P{M}a-zA-Z0-9\&._\[\]-]'
—
Reply to this email directly, view it on GitHub
<#7569>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGWZDHRGKZNVMC6KS6ZKA3ZTIWC3AVCNFSM6AAAAABNCZOOZCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGA4TIMZSGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SwineFeather
-
Thanks a lot. This worked! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Like the title says, I would like to set
/res set about
with non-english letters like åäö. How do I achieve that?I have tried to change regex. But didn't work.
[Towny] Invalid string, resident about not set.
regex:
name_filter_regex: '[\/]'
name_check_regex: ^[\p{L}*a-zA-Z0-9.[]-]*$
string_check_regex: ^[a-zA-Z0-9 \s.[]#?!@$%^&*-,*(){}åäöÅÄÖæøÆØñÑáÁéÉíÍóÓúÚýÝþÞðÐ]*$
name_remove_regex: '[^\P{M}a-zA-Z0-9\&._\[\]-]'
Beta Was this translation helpful? Give feedback.
All reactions