Skip to content

Commit

Permalink
Update src/lib/exponent/index.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Cook <33655003+jmcook1186@users.noreply.github.com>
  • Loading branch information
jmcook1186 committed May 21, 2024
1 parent b9e5d4f commit 0b08e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/exponent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Exponent = (globalConfig: ExponentConfig): PluginInterface => {
};

const validateNumericString = (str: string) => {
if (typeof str !== 'number') {
if (isNaN(+Number(str))) {
throw new InputValidationError(
errorBuilder({
message: `${str} is not numeric`,
Expand Down

0 comments on commit 0b08e12

Please sign in to comment.