We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18c73c commit f191315Copy full SHA for f191315
web/src/utils/commify.ts
@@ -1,7 +1,7 @@
1
export function commify(value: string | number): string {
2
const comps = String(value).split(".");
3
4
- if (!String(value).match(/^-?[0-9]*\.?[0-9]*$/)) {
+ if (!String(value).match(/^-?\d+(\.\d+)?$/)) {
5
return "0";
6
}
7
0 commit comments