Skip to content

Commit 301ff17

Browse files
committed
fix - invalid Regex string
1 parent 825a4fe commit 301ff17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class Plugin
1818
{
1919

2020
static makeReg(fileName: string) {
21-
return new RegExp(`<link[^>]+href=['"]${fileName}['"][^>]+(>|\\\\>|><\\/link>)`);
21+
return new RegExp(`<link[^>]+href=['"]${fileName}['"][^>]+(>|\/>|><\/link>)`);
2222
}
2323

2424
static getStyleString(modules: Module[]): string {

0 commit comments

Comments
 (0)