Skip to content

Commit

Permalink
Swap order of replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Oct 10, 2024
1 parent 6499151 commit c451463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const backQuoteRegex = /`/g
const backSlashRegex = /\\/g

function escapeCss(css: string) {
return css.replace(backQuoteRegex, '\\`').replace(backSlashRegex, '\\\\')
return css.replace(backSlashRegex, '\\\\').replace(backQuoteRegex, '\\`')
}

async function createGlobalCssJavaScriptAsync(
Expand Down

0 comments on commit c451463

Please sign in to comment.