This commit is contained in:
the-djmaze 2023-08-28 17:44:07 +02:00
parent 8b246e64a6
commit 4f3265f8b6

View file

@ -99,7 +99,7 @@ const
},
cleanCSS = source =>
source.trim().replace(/-(ms|webkit)-[^;]+(;|$)/g, '')
source.trim().replace(/(^|;)\s*-(ms|webkit)-[^;]+(;|$)/g, '')
.replace(/white-space[^;]+(;|$)/g, '')
// Drop Microsoft Office style properties
// .replace(/mso-[^:;]+:[^;]+/gi, '')