Has anyone used the rangelength rule in moodle form?
The rule expects array($min, $max) but the lang string for the validation error message is defined:
$string['err_rangelength'] = 'You must enter between {$a->format[0]} and {$a->format[1]} characters here.';
which is not only incompatible with what the rule expects but afacit also with get_string.