Commit f5f3584c authored by Marc Egger's avatar Marc Egger
Browse files

Refs #12588 slug migration: add more general regex pattern.

parent 79340018
Pipeline #5425 passed with stages
in 3 minutes and 15 seconds
......@@ -408,8 +408,10 @@ class DatabaseUpdate {
// Patterns for which we can't make a suggestion (applied after the the patterns with suggestions were replaced)
$patternsNeedManualFix = [
'/({{)((?:pageAlias|pageId))(:T[BCDEFLMPRSUVY0]*}})/s',
'/([\'"\|]U:)(id=\S+?)([&\|"\'])/s',
'/([\'"\|]u:\S+?[\?&])(id=\S+?)([&\|"\'])/s'
'/([\'"\|]u:\?)(\S+?)([&\|"\'])/s',
// '/([\'"\|]U:)(id=\S+?)([&\|"\'])/s', // already caught by a pattern bellow
// '/([\'"\|]u:\S+?[\?&])(id=\S+?)([&\|"\'])/s', // already caught by a pattern bellow
'/([&\|"\'\?:]id=)([^' . $noSuggestionSymbol . '\s]+?)([&\|"\'])/s'
];
##################################################
......
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