Index: trunk/phase3/maintenance/rebuildInterwiki.inc |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | $iwArray = array(); |
110 | 110 | |
111 | 111 | foreach ( $lines as $line ) { |
112 | | - if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(.*?)\s*$/', $line, $matches ) ) { |
| 112 | + if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(https?:\/\/.*?)\s*$/', $line, $matches ) ) { |
113 | 113 | $prefix = strtolower( $matches[1] ); |
114 | 114 | $url = $matches[2]; |
115 | 115 | if ( preg_match( '/(wikipedia|wiktionary|wikisource|wikiquote|wikibooks|wikimedia)\.org/', $url ) ) { |