Skip to content

Commit

Permalink
fix: replace
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Jan 23, 2025
1 parent 7e38994 commit 55693b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function exportHTML(primaryColor: string) {
setStyles(element)

const htmlStr = element.innerHTML
.replace(`var(--md-primary-color)`, primaryColor)
.replace(/var\(--md-primary-color\)/g, primaryColor)
.replace(/--md-primary-color:.+?;/g, ``)

const downLink = document.createElement(`a`)
Expand Down

0 comments on commit 55693b0

Please sign in to comment.