diff options
Diffstat (limited to 'src/arguments')
-rw-r--r-- | src/arguments/abbreviatedNumber.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/abbreviatedNumber.ts b/src/arguments/abbreviatedNumber.ts index 99f6df7..e6791e6 100644 --- a/src/arguments/abbreviatedNumber.ts +++ b/src/arguments/abbreviatedNumber.ts @@ -5,7 +5,7 @@ export const abbreviatedNumberTypeCaster: BushArgumentTypeCaster = (_, phrase): if (!phrase) return null; const num = numeral(phrase?.toLowerCase()).value(); - if (!num || isNaN(num)) return null; + if (num === undefined || num === null || isNaN(num)) return null; return num; }; |