Skip to content

Commit

Permalink
fix: isWebsite condition #164
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Feb 14, 2024
1 parent eea8444 commit 9b3ef85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Fields/Field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
},
},
Expand Down

0 comments on commit 9b3ef85

Please sign in to comment.