allow acute accent

This commit is contained in:
naskya 2023-04-15 01:00:43 +09:00
parent 818bdcbd18
commit 4fc833c84c

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) {