Skip to content

lib: support min/max values in validateInteger()

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/validate into master

This commit updates validateInteger() in two ways:

  • Number.isInteger() is used instead of Number.isSafeInteger(). This ensures that all integer values are supported.
  • Minimum and maximum values are supported. They default to the min and max safe integer values, but can be customized.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading