diff --git a/src/AssetsMinify/Assets/Factory.php b/src/AssetsMinify/Assets/Factory.php index c28a2b0..c089f0a 100644 --- a/src/AssetsMinify/Assets/Factory.php +++ b/src/AssetsMinify/Assets/Factory.php @@ -118,7 +118,7 @@ public function guessPath( $file_url ) { * @return string The regular expression matching the URL. */ protected function getUrlRegex( $url ) { - $regex = '@^' . str_replace( 'http\://','(https?\:)?\/\/', preg_quote( $url )) . '@'; + $regex = '@^' . str_replace( array( 'https\://', 'http\://' ), '(https?\:)?\/\/', preg_quote( $url )) . '@'; return $regex; } -} \ No newline at end of file +}