source:
frontend/node_modules/csso/lib/replace/String.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 263 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | module.exports = function(node) { |
| 2 | var value = node.value; | |
| 3 | ||
| 4 | // remove escaped newlines, i.e. | |
| 5 | // .a { content: "foo\ | |
| 6 | // bar"} | |
| 7 | // -> | |
| 8 | // .a { content: "foobar" } | |
| 9 | value = value.replace(/\\(\r\n|\r|\n|\f)/g, ''); | |
| 10 | ||
| 11 | node.value = value; | |
| 12 | }; |
Note:
See TracBrowser
for help on using the repository browser.
