|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
369 bytes
|
| Line | |
|---|
| 1 | var ZERO_DEG_PATTERN = /\(0deg\)/g;
|
|---|
| 2 |
|
|---|
| 3 | var 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 |
|
|---|
| 19 | module.exports = plugin;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.