Skip to content

Commit

Permalink
Fixes masaakim#253.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephraim Gregor committed Jan 10, 2017
1 parent caa75ff commit 01eb8bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formatZeros.js
Expand Up @@ -16,7 +16,7 @@ function formatZeros (value, stylelint) {
}

if (getProperty(stylelint, 'number-no-trailing-zeros') === true) {
value = value.replace(/(\d+)(\.[0-9]*[1-9]+)(0+)/g, '$1$2')
value = value.replace(/(\d+)(\.[0-9]*[1-9]+)(0+)(?=\D|$)/g, '$1$2')
value = value.replace(/(\d+)(\.0+)(?=\D|$)/g, '$1')
}

Expand Down
Expand Up @@ -4,4 +4,5 @@ p {
top: 1.0px;
line-height: 1.0;
letter-spacing: 1.08;
width: 32.207%;
}
Expand Up @@ -4,4 +4,5 @@ p {
top: 1px;
line-height: 1;
letter-spacing: 1.08;
width: 32.207%;
}

0 comments on commit 01eb8bc

Please sign in to comment.