prettyHTML too aggressive in eating up extra spaces

This commit is contained in:
Chris Wanstrath 2026-02-09 16:23:51 -08:00
parent 3744454076
commit 1b19e09e14

View File

@ -46,8 +46,6 @@ const minify = function(el) {
.replace(/>\s+</g, '><')
.replace(/\s+/g, ' ')
.replace(/\s>/g, '>')
.replace(/>\s/g, '>')
.replace(/\s</g, '<')
.replace(/class=["']\s/g, function(match) {
return match.replace(/\s/g, '');
})