Skip to content

Commit

Permalink
fix: replace in prettify transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jan 12, 2024
1 parent 12feedd commit 96c2730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/prettify.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = async (html, config = {}, direct = false) => {

const reFormat = (html, config) => {
if (/<!doctype html>/i.test(html) && !config.xmlMode) {
html = html.replaceAll(/<(.+?)(\s\/)>/g, '<$1>')
html = html.replace(/<(.+?)(\s\/)>/g, '<$1>')
}

return html
Expand Down

0 comments on commit 96c2730

Please sign in to comment.