preg match was throwing to many errors

master
Tezza 2015-03-15 22:18:21 +01:00
parent e633ed2c75
commit 435a8e0101
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@
static public function removeImages( $googleEvent ) {
preg_match_all( self::$imageMatch, $googleEvent[ 'description' ], $image, PREG_PATTERN_ORDER );
preg_match_all( '/' . self::$imageMatch . '/i', $googleEvent[ 'description' ], $image, PREG_PATTERN_ORDER );
return preg_replace(
'/\n' . self::$imageMatch . '/i',
@ -112,7 +112,7 @@
static public function removeURLs( $googleEvent ) {
preg_match_all( self::$urlMatch, $googleEvent[ 'description' ], $url, PREG_PATTERN_ORDER );
preg_match_all( '/' . self::$urlMatch . '/i', $googleEvent[ 'description' ], $url, PREG_PATTERN_ORDER );
return preg_replace(
'/\n' . self::$urlMatch . '/i',