Skip to content

Commit

Permalink
ignore case while extracting style and script
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka authored Jan 11, 2023
1 parent 8810347 commit 9b3f52c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/markdown/toHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export function renderBodyMarkdown(parse: postMap, verbose = false) {

// extract style, script
const re = {
script: /<script\b[^>]*>[\s\S]*?<\/script\b[^>]*>/gm,
style: /<style\b[^>]*>[\s\S]*?<\/style\b[^>]*>/gm
script: /<script\b[^>]*>[\s\S]*?<\/script\b[^>]*>/gmi,
style: /<style\b[^>]*>[\s\S]*?<\/style\b[^>]*>/gmi
};
const extracted: {
script: string[];
Expand Down

0 comments on commit 9b3f52c

Please # to comment.