Skip to content

Commit 12e5d9e

Browse files
committed
commit
1 parent 3c11e85 commit 12e5d9e

File tree

5 files changed

+1084
-1250
lines changed

5 files changed

+1084
-1250
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
# V0.2.1
4+
5+
- Coverage 100%.
6+
37
# v0.2.0
48

59
- Same api can be passed with function so you can check if a variable has to be ignored

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ module.exports = function variableCompress(opts) {
7878
let cssName = E;
7979
if (E.slice(0, 2) === '--') {
8080
name = E.slice(2);
81-
cssName = E;
8281
}
8382
else {
8483
cssName = '--' + E;

index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ code {
8181
}`,
8282
[
8383
'--primary-color',
84-
'--2',
84+
'2',
8585
(e) => e.includes('special'),
8686
(e) => e === '--5'
8787
]

index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ module.exports = function variableCompress(opts: variableCompress.parameters[])
112112

113113
if (E.slice(0, 2) === '--') {
114114
name = E.slice(2);
115-
cssName = E;
116115
} else {
117116
cssName = '--' + E;
118117
}

0 commit comments

Comments
 (0)