.regularExpression()
is hardcoded 3 times in the script, is there a way to dynamically attach it from loops from variable const regex = ['reg1', 'reg2', 'reg3']
?
Usage:
{
text: Check.string()
.regularExpression(/reg1/)
.regularExpression(/reg2/)
.regularExpression(/reg3/)
}