ship-gis/node_modules/csso/lib/replace/String.js
2026-01-22 09:14:01 +09:00

13 lines
263 B
JavaScript

module.exports = function(node) {
var value = node.value;
// remove escaped newlines, i.e.
// .a { content: "foo\
// bar"}
// ->
// .a { content: "foobar" }
value = value.replace(/\\(\r\n|\r|\n|\f)/g, '');
node.value = value;
};