Fix unit matching regex

This commit is contained in:
pyoor 2017-08-16 16:16:29 -04:00
parent ddc48c2045
commit 88cf5c4bfb

View file

@ -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) {