allow acute accent

This commit is contained in:
naskya 2023-04-15 01:00:43 +09:00
parent afa8f06ef6
commit 4d0245f1a5
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139
1 changed files with 12 additions and 3 deletions

View File

@ -355,9 +355,18 @@ const age = $computed(() => {
const timeForThem = $computed(() => {
const maybeCityNames = [
props.user.location!,
props.user.location!.replace(/[^A-Za-z].*/, ""),
props.user.location!.replace(/[^A-Za-z\-\'\.].*/, ""),
props.user.location!.replace(/[^A-Za-z0-9\-\'\.\s].*/, ""),
props.user.location!.replace(
/[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź].*/,
""
),
props.user.location!.replace(
/[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.].*/,
""
),
props.user.location!.replace(
/[^A-Za-z0-9ÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.\s].*/,
""
),
];
for (const city of maybeCityNames) {