Skip to content

Commit 7564976

Browse files
authored
fix: vite asset regexp
1 parent 6268f1b commit 7564976

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ interface PostcssLitOptions {
3636

3737
const CSS_TAG_ALIAS = 'cssTag';
3838
const UNSAFE_CSS_TAG_ALIAS = 'unsafeCssTag';
39-
const VITE_ASSET_URL_EXPRESSION =
40-
/__VITE_ASSET__([a-z\d]{8})__(?:\$_(.*?)__)?/g;
39+
const VITE_ASSET_URL_EXPRESSION = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g;
4140

4241
const escape = (str: string): string =>
4342
wrapViteAssetExpressions(

0 commit comments

Comments
 (0)