@@ 168-170 (lines=3) @@ | ||
165 | public function getVariableStartToEndRegex() { |
|
166 | $base = $this->getBaseRegex(); |
|
167 | $newRegex = [ '', '' ]; |
|
168 | if ( $base[0] !== '' ) { |
|
169 | $newRegex[0] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[0]})$/iuS" ); |
|
170 | } |
|
171 | if ( $base[1] !== '' ) { |
|
172 | $newRegex[1] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[1]})$/S" ); |
|
173 | } |
|
@@ 171-173 (lines=3) @@ | ||
168 | if ( $base[0] !== '' ) { |
|
169 | $newRegex[0] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[0]})$/iuS" ); |
|
170 | } |
|
171 | if ( $base[1] !== '' ) { |
|
172 | $newRegex[1] = str_replace( "\\$1", "(.*?)", "/^(?:{$base[1]})$/S" ); |
|
173 | } |
|
174 | return $newRegex; |
|
175 | } |
|
176 |