Fix unit matching regex
This commit is contained in:
parent
ddc48c2045
commit
88cf5c4bfb
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ utils.mutate = {
|
|||
return p1 + make.unit.unit()
|
||||
}
|
||||
}
|
||||
return str.replace(/(\d*)(px|em|ex|ch|rem|mm|cm|in|pt|pc|%')/g, mutator)
|
||||
return str.replace(/(\d+)(px|em|ex|ch|rem|mm|cm|in|pt|pc|%')/g, mutator)
|
||||
},
|
||||
|
||||
random: function (str) {
|
||||
|
|
Loading…
Reference in a new issue