Replace non-existent _.isInteger function with regex match

Fixes `checkInt` function which was breaking all length rules