From f531ed2ab223e9ee87037c892f028192b93f6e0b Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 15 Apr 2023 01:37:53 +0900 Subject: [PATCH] fix a bug --- packages/client/src/pages/user/home.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/user/home.vue b/packages/client/src/pages/user/home.vue index 8c1c82d065..c3d73b5731 100644 --- a/packages/client/src/pages/user/home.vue +++ b/packages/client/src/pages/user/home.vue @@ -363,10 +363,12 @@ const timeForThem = $computed(() => { /[^A-Za-zÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.].*/, "" ), - props.user.location!.replace( - /[^A-Za-z0-9ÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.\s].*/, - "" - ), + props.user + .location!.replace( + /[^A-Za-z0-9ÁĆÉǴÍḰĹḾŃÓṔŔŚÚÝŹáćéǵíḱĺḿńóṕŕśúýź\-\'\.\s].*/, + "" + ) + .trim(), ]; for (const city of maybeCityNames) {