[-] BO : fixed error message in language form #PSCFV-8890
This commit is contained in:
@@ -1055,6 +1055,9 @@ class ValidateCore
|
||||
{
|
||||
return (bool)(is_string($name) && preg_match('/^[0-9a-zA-Z-_]*$/u', $name));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static function isPrestaShopVersion($version)
|
||||
{
|
||||
return (preg_match('/^[0-1]\.[0-9]{1,2}(\.[0-9]{1,2}){0,2}$/', $version) && ip2long($version));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user