yup-password
module in older version, eg 0.2.2
had a nice method called minRepeating
, which takes number argument to check the password for repeating letters, for example:
yup.minRepeating(2, "please don't repeat the same letter more than 2 times")
unfortunately in version 0.4.0
of this module the method gone and there is no alternative.
Do you know any other module or a nice way how to implement this kind of functionality with yup
module in minimum version 1.6.1
??