Skip to content

Commit

Permalink
Locales separating decimals with commas
Browse files Browse the repository at this point in the history
Add regex for locales separating decimals with commas, and not periods
  • Loading branch information
francesco-ferraro authored Nov 28, 2021
1 parent e51ba39 commit d8bd7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extensions/chrome/return-youtube-dislike.script.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
maximumFractionDigits: 1
});

return formatter.format(roundDown(numberState)).replace('.0', '');
return formatter.format(roundDown(numberState)).replace(/.0|,0/gi, '');
}

var jsInitChecktimer = null;
Expand Down

0 comments on commit d8bd7d3

Please sign in to comment.