Index: trunk/extensions/CentralNotice/SpecialBannerLoader.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | if ( $wgRequest->getText( 'banner' ) ) { |
31 | 31 | $bannerName = $wgRequest->getText( 'banner' ); |
32 | 32 | $content = $this->getJsNotice( $bannerName ); |
33 | | - if ( preg_match( "/<centralnotice-template-\w{1,}>\z/", $content ) ) { |
| 33 | + if ( preg_match( "/<centralnotice-template-\w+>\z/", $content ) ) { |
34 | 34 | echo "/* Failed cache lookup */"; |
35 | 35 | } elseif ( strlen( $content ) == 0 ) { |
36 | 36 | // Hack for IE/Mac 0-length keepalive problem, see RawPage.php |