diff --git a/packages/transformer-attributify/src/index.ts b/packages/transformer-attributify/src/index.ts index 381f865..adf1b00 100644 --- a/packages/transformer-attributify/src/index.ts +++ b/packages/transformer-attributify/src/index.ts @@ -9,7 +9,8 @@ const strippedPrefixes = [ ] const splitterRE = /[\s'"`;]+/g -const elementRE = /<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs +// const elementRE = /<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs +const elementRE = /<\w(?=.*>)[\w:\.$-]*\s(((\&>)|.*?)*?)\/?>/gs const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:={?(["'])([^\2]*?)\2}?)?/g export const defaultIgnoreAttributes = ['placeholder', 'setup', 'lang', 'scoped'] diff --git a/playground/src/pages/index/index.vue b/playground/src/pages/index/index.vue index 7da86d1..9cce6b9 100644 --- a/playground/src/pages/index/index.vue +++ b/playground/src/pages/index/index.vue @@ -8,19 +8,22 @@ const bool = true