Commit f894f72f authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Issue #3054546 by kalabro, lennart, gbyte.co: Current preg_match() incompatible with php 7.3

parent a5eaa067
......@@ -67,7 +67,7 @@ class SimplesitemapVariantsForm extends SimplesitemapFormBase {
$form_state->setErrorByName('', $this->t("<strong>Line @line</strong>: The variant name cannot be empty.", $placeholders));
}
if (!preg_match('/^[\w-_]+$/', $variant_name)) {
if (!preg_match('/^[\w\-_]+$/', $variant_name)) {
$form_state->setErrorByName('', $this->t("<strong>Line @line</strong>: The variant name <em>@name</em> can only include alphanumeric characters, dashes and underscores.", $placeholders));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment