Skip to content

Commit

Permalink
fix: global regex match, no group needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed May 30, 2023
1 parent 0293a98 commit 59de3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/Twemoji.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const loadSVG = async () => {
}
if (!svgFetch) return
svgTwemojis.value[parsed.value] = {
body: svgFetch.replace(/<(\/)*svg[^>]*>/, '')
body: svgFetch.replace(/<\/*svg[^>]*>/g, '')
}
}
watchEffect(() => codePoint.value)
Expand Down

0 comments on commit 59de3ab

Please sign in to comment.