aboutsummaryrefslogtreecommitdiff
path: root/src/arguments
diff options
context:
space:
mode:
Diffstat (limited to 'src/arguments')
-rw-r--r--src/arguments/abbreviatedNumber.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/abbreviatedNumber.ts b/src/arguments/abbreviatedNumber.ts
index a98699c..43d2938 100644
--- a/src/arguments/abbreviatedNumber.ts
+++ b/src/arguments/abbreviatedNumber.ts
@@ -7,7 +7,7 @@ export const abbreviatedNumber: BushArgumentTypeCaster<number | null> = (_, phra
if (!phrase) return null;
const num = numeral(phrase?.toLowerCase()).value();
- if (num === undefined || num === null || isNaN(num)) return null;
+ if (typeof num !== 'number' || isNaN(num)) return null;
return num;
};