Commit f894f72f authored by gbyte's avatar gbyte Committed by Pawel G

Issue #3054546 by kalabro, lennart, 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