mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Fix alias validator.
This commit is contained in:
1 parent
d7d76913b1
commit
016d0f1435
1 file changed
+1
-1
@@ -121,7 +121,7 @@ class Validator
|
||||
*/
|
||||
public function validateAlias($value)
|
||||
{
|
||||
if (preg_match('/[A-Za-z_][A-Za-z0-9_]+/', $value) !== 1) {
|
||||
if (preg_match('/^[A-Za-z_]+[A-Za-z0-9_]+$/', $value) !== 1) {
|
||||
throw new \InvalidArgumentException(
|
||||
$this->translator->translate('invalidAlias', 'leaflet')
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user