Fix unit matching regex

This commit is contained in:
pyoor 2017-08-16 16:16:29 -04:00
parent ddc48c2045
commit 88cf5c4bfb
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ utils.mutate = {
return p1 + make.unit.unit() 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) { random: function (str) {