source: imaps-frontend/node_modules/clean-css/lib/optimizer/level-1/value-optimizers/degrees.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 369 bytes
Line 
1var ZERO_DEG_PATTERN = /\(0deg\)/g;
2
3var plugin = {
4 level1: {
5 value: function degrees(_name, value, options) {
6 if (!options.compatibility.properties.zeroUnits) {
7 return value;
8 }
9
10 if (value.indexOf('0deg') == -1) {
11 return value;
12 }
13
14 return value.replace(ZERO_DEG_PATTERN, '(0)');
15 }
16 }
17};
18
19module.exports = plugin;
Note: See TracBrowser for help on using the repository browser.