From 9b3ef85b9d01013eafa57013c555cfdf7ae35928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Wed, 14 Feb 2024 22:52:12 +0100 Subject: [PATCH] fix: isWebsite condition #164 --- components/Fields/Field.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Fields/Field.vue b/components/Fields/Field.vue index 8d81cc675..0d9c11c80 100644 --- a/components/Fields/Field.vue +++ b/components/Fields/Field.vue @@ -97,7 +97,7 @@ export default defineNuxtComponent({ return this.properties?.description?.replace(/(<([^>]+)>)/gi, '') }, isWebsite(): boolean { - return /\w*:?website:?\w*/.test(this.field.field) + return this.field.field === 'website' || this.field.field.startsWith('website:') || this.field.field.endsWith(':website') }, },