Change alphanumeric regex validation in class.LSformRule_alphanumeric.php

This commit is contained in:
Pierre Arnaud 2014-08-14 15:38:03 +02:00
parent e8c0205810
commit 56f6b34d1f

View file

@ -40,7 +40,7 @@ class LSformRule_alphanumeric extends LSformRule {
if (isset($options['params']['with_accents']) && $options['params']['with_accents'] == true){
$regex = '/^[a-zA-Z0-9àâäéèêëîïôöù]+$/';
$regex = '/(*UTF8)^[0-9\p{L}]+$/';
}
else {
$regex = '/^[a-zA-Z0-9]+$/';