diff --git a/theme/src/client/components/VPIconify.vue b/theme/src/client/components/VPIconify.vue index d2492c09..a4a63fde 100644 --- a/theme/src/client/components/VPIconify.vue +++ b/theme/src/client/components/VPIconify.vue @@ -61,7 +61,7 @@ const bind = computed(() => ({ diff --git a/theme/src/node/prepare/prepareIcons.ts b/theme/src/node/prepare/prepareIcons.ts index 44dd6120..bc085bf7 100644 --- a/theme/src/node/prepare/prepareIcons.ts +++ b/theme/src/node/prepare/prepareIcons.ts @@ -16,8 +16,8 @@ interface IconData { type CollectMap = Record type IconDataMap = Record -const ICON_REGEXP = /<(?:VP)?Icon(?:ify)?([^>]*)>/g -const ICON_NAME_REGEXP = /name="([^"]+)"/ +const ICON_REGEXP = /<(?:VP)?(Icon|Card|LinkCard)([^>]*)>/g +const ICON_NAME_REGEXP = /(?:name|icon)="([^"]+)"/ const URL_CONTENT_REGEXP = /(url\([\s\S]+\))/ const JS_FILENAME = 'internal/iconify.js' const CSS_FILENAME = 'internal/iconify.css'