Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
382 bytes
|
Line | |
---|
1 | var property = require('css-tree').property;
|
---|
2 |
|
---|
3 | module.exports = function cleanDeclartion(node, item, list) {
|
---|
4 | if (node.value.children && node.value.children.isEmpty()) {
|
---|
5 | list.remove(item);
|
---|
6 | return;
|
---|
7 | }
|
---|
8 |
|
---|
9 | if (property(node.property).custom) {
|
---|
10 | if (/\S/.test(node.value.value)) {
|
---|
11 | node.value.value = node.value.value.trim();
|
---|
12 | }
|
---|
13 | }
|
---|
14 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.