diff options
Diffstat (limited to 'Echo/includes/EchoSummaryParser.php')
-rw-r--r-- | Echo/includes/EchoSummaryParser.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Echo/includes/EchoSummaryParser.php b/Echo/includes/EchoSummaryParser.php index a701b101..ab738a8c 100644 --- a/Echo/includes/EchoSummaryParser.php +++ b/Echo/includes/EchoSummaryParser.php @@ -30,12 +30,13 @@ class EchoSummaryParser { $summary = preg_replace( '#/\*.*?\*/#', ' [] ', $summary ); $users = []; - $regex = '/\[\[([' . Title::legalChars() . ']*+)(?:\|.*?)?\]\]/'; + $regex = '/\[\[([' . Title::legalChars() . ']++)(?:\|.*?)?\]\]/'; if ( preg_match_all( $regex, $summary, $matches ) ) { foreach ( $matches[1] as $match ) { - if ( preg_match( '/^:/', $match ) ) { + if ( $match[0] === ':' ) { continue; } + $title = Title::newFromText( $match ); if ( $title && $title->isLocal() |