Skip to content

Commit

Permalink
Add options to isNumeric
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikra authored and NoNameProvided committed Nov 4, 2018
1 parent 3e6abc6 commit 96f82ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ export class Validator {
* Checks if the string is numeric.
* If given value is not a string, then it returns false.
*/
isNumberString(value: string): boolean {
return typeof value === "string" && this.validatorJs.isNumeric(value);
isNumberString(value: string, options?: ValidatorJS.IsNumericOptions): boolean {
return typeof value === "string" && this.validatorJs.isNumeric(value, options);
}

// -------------------------------------------------------------------------
Expand Down

0 comments on commit 96f82ab

Please sign in to comment.