Skip to content

Commit

Permalink
fix: should remove all link tag which was converted
Browse files Browse the repository at this point in the history
fix #10
  • Loading branch information
runjuu committed May 30, 2019
1 parent 2e113de commit 832abae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default class Plugin {

static removeLinkTag(html: string, cssFileName: string) {
return html.replace(
new RegExp(`<link[^>]+href=['"]${cssFileName}['"][^>]+(>|\/>|><\/link>)`),
new RegExp(
`<link[^>]+href=['"]${cssFileName}['"][^>]+(>|\/>|><\/link>)`,
'g',
),
'',
)
}
Expand Down

0 comments on commit 832abae

Please sign in to comment.