diff --git a/includes/MediaWikiGadgetsDefinitionRepo.php b/includes/MediaWikiGadgetsDefinitionRepo.php index 96389e0a..1be5cf24 100644 --- a/includes/MediaWikiGadgetsDefinitionRepo.php +++ b/includes/MediaWikiGadgetsDefinitionRepo.php @@ -173,7 +173,7 @@ class MediaWikiGadgetsDefinitionRepo extends GadgetRepo { foreach ( $lines as $line ) { $m = []; - if ( preg_match( '/^==+ *([^*:\s|]+?)\s*==+\s*$/', $line, $m ) ) { + if ( preg_match( '/^==+ *([^*:\s|]+)\s*(?newFromDefinition( $line, $section );