]> git.corax.cc Git - toolbox/commit
include/is: Add is_int() function
authorMatthias Kruk <m@m10k.eu>
Thu, 2 Dec 2021 03:00:24 +0000 (12:00 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 2 Dec 2021 03:00:24 +0000 (12:00 +0900)
commit1dd9bb9c5c28f6cadf990d31f8e4fc4ca6e4722a
tree7d866f31baae80d84e1411fb6c7ce44a09954969
parent4c2d817f9568881b9f53acdab909c328646e6097
include/is: Add is_int() function

The is_digits() function provided by the "is" module can be used to
determine if an input consists of only digits. However, it cannot be
used to validate inputs that may be prefixed with a sign.
This commit adds the is_int() function, which can be used to validate
numeric inputs that may be prefixed with a sign.
include/is.sh