diff --git a/packages/shared-integration/src/defaults.ts b/packages/shared-integration/src/defaults.ts index 5948064fb..6f86b61b1 100644 --- a/packages/shared-integration/src/defaults.ts +++ b/packages/shared-integration/src/defaults.ts @@ -16,7 +16,7 @@ export const defaultIdeMatchInclude: RegExp[] = [ // String literals /(['"`])[^\1]*?\1/g, // HTML tags - /<[^\/](?:"[^"]*"|'[^"]*'|[^>])+>/g, + /<[^\/?<>0-9$_!](?:"[^"]*"|'[^"]*'|[^>])+>/g, // CSS directives /(@apply|--uno|--at-apply)[^;]*?;/g, ] diff --git a/test/pos.test.ts b/test/pos.test.ts index b635c0c6d..e8a1864bf 100644 --- a/test/pos.test.ts +++ b/test/pos.test.ts @@ -416,6 +416,17 @@ let transition = 'ease-in-out duration-300' ], ] `) + + // #3733, match php