Skip to content

Commit 8b26c99

Browse files
committed
Merge pull request #78 from infinit89/patch-1
Duplicated percentage checking
2 parents 3cbd92d + 3a55293 commit 8b26c99

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/css/PropertyValuePart.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ function PropertyValuePart(text, line, col){
7575

7676
}
7777

78-
} else if (/^([+\-]?[\d\.]+)%$/i.test(text)){ //percentage
79-
this.type = "percentage";
80-
this.value = +RegExp.$1;
8178
} else if (/^([+\-]?[\d\.]+)%$/i.test(text)){ //percentage
8279
this.type = "percentage";
8380
this.value = +RegExp.$1;
@@ -173,4 +170,4 @@ PropertyValuePart.prototype.constructor = PropertyValuePart;
173170
*/
174171
PropertyValuePart.fromToken = function(token){
175172
return new PropertyValuePart(token.value, token.startLine, token.startCol);
176-
};
173+
};

0 commit comments

Comments
 (0)