Skip to content

Commit 780baaa

Browse files
authored
Update index.ts
1 parent 38ec748 commit 780baaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class Plugin
4343

4444
static removeLinkTag(html: string, cssFileName: string) {
4545
return html.replace(
46-
new RegExp(`<link[^>]+href=['"]${cssFileName}['"][^>]+(>|\/>|><\/link>)`),
46+
new RegExp('<link href="' + cssFileName + '\\?\\w+" rel="stylesheet">'),
4747
'',
4848
);
4949
}

0 commit comments

Comments
 (0)