Skip to content

Commit c6e9a26

Browse files
committed
feat(core): allow i- prefixed icon name
1 parent 96e1529 commit c6e9a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/client/webcomponents/components/IconifyIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const isUrlIcon = computed(() => props.icon.includes('/') || props.icon.startsWi
1010
const iconifyParsed = computed(() => {
1111
if (isUrlIcon.value)
1212
return undefined
13-
const match = props.icon.match(/^([\w-]+):([\w-]+)$/)
13+
const match = props.icon.match(/^(?:i-)?([\w-]+):([\w-]+)$/)
1414
if (!match)
1515
return undefined
1616
return {

0 commit comments

Comments
 (0)