change regex priority
This commit is contained in:
parent
3ecd3cf6a1
commit
ec96805ddc
1 changed files with 8 additions and 8 deletions
|
@ -355,20 +355,20 @@ const age = $computed(() => {
|
||||||
const timeForThem = $computed(() => {
|
const timeForThem = $computed(() => {
|
||||||
const maybeCityNames = [
|
const maybeCityNames = [
|
||||||
props.user.location!,
|
props.user.location!,
|
||||||
props.user.location!.replace(
|
|
||||||
/[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź].*/,
|
|
||||||
""
|
|
||||||
),
|
|
||||||
props.user.location!.replace(
|
|
||||||
/[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.].*/,
|
|
||||||
""
|
|
||||||
),
|
|
||||||
props.user
|
props.user
|
||||||
.location!.replace(
|
.location!.replace(
|
||||||
/[^A-Za-z0-9ÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.\s].*/,
|
/[^A-Za-z0-9ÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.\s].*/,
|
||||||
""
|
""
|
||||||
)
|
)
|
||||||
.trim(),
|
.trim(),
|
||||||
|
props.user.location!.replace(
|
||||||
|
/[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.].*/,
|
||||||
|
""
|
||||||
|
),
|
||||||
|
props.user.location!.replace(
|
||||||
|
/[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź].*/,
|
||||||
|
""
|
||||||
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const city of maybeCityNames) {
|
for (const city of maybeCityNames) {
|
||||||
|
|
Loading…
Reference in a new issue