@@ 151-158 (lines=8) @@ | ||
148 | foreach ( $m as $terms ) { |
|
149 | $q[] = $terms[1] . $wgContLang->normalizeForSearch( $terms[2] ); |
|
150 | ||
151 | if ( !empty( $terms[3] ) ) { |
|
152 | $regexp = preg_quote( $terms[3], '/' ); |
|
153 | if ( $terms[4] ) { |
|
154 | $regexp .= "[0-9A-Za-z_]+"; |
|
155 | } |
|
156 | } else { |
|
157 | $regexp = preg_quote( str_replace( '"', '', $terms[2] ), '/' ); |
|
158 | } |
|
159 | $this->searchTerms[] = $regexp; |
|
160 | } |
|
161 | } |
@@ 197-204 (lines=8) @@ | ||
194 | } else { |
|
195 | $searchon .= ( $terms[1] == '-' ? ' ~' : ' & ' ) . $this->escapeTerm( $terms[2] ); |
|
196 | } |
|
197 | if ( !empty( $terms[3] ) ) { |
|
198 | $regexp = preg_quote( $terms[3], '/' ); |
|
199 | if ( $terms[4] ) { |
|
200 | $regexp .= "[0-9A-Za-z_]+"; |
|
201 | } |
|
202 | } else { |
|
203 | $regexp = preg_quote( str_replace( '"', '', $terms[2] ), '/' ); |
|
204 | } |
|
205 | $this->searchTerms[] = $regexp; |
|
206 | } |
|
207 | } |