ipl: relax attribute name checks

This commit is contained in:
Thomas Gelf 2018-05-04 22:54:48 +02:00
parent a10fa5abff
commit 30c6bf1b95

View File

@ -58,7 +58,7 @@ class Attribute
*/ */
public function setName($name) public function setName($name)
{ {
if (! preg_match('/^[a-z][a-z:-]*$/i', $name)) { if (! preg_match('/^[a-z][a-z0-9:-]*$/i', $name)) {
throw new ProgrammingError( throw new ProgrammingError(
'Attribute names with special characters are not yet allowed: %s', 'Attribute names with special characters are not yet allowed: %s',
$name $name