"ح" character is the base of 32 character of persian language and not pass in follow code if (!validator.isAlpha( str , ['fa-IR'] ) ){ //some code ... }