diff --git a/.travis.yml b/.travis.yml index 9f1b70c..9ac2387 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +os: linux dist: trusty language: php diff --git a/src/Find_Command.php b/src/Find_Command.php index b8953d9..a5f5e14 100644 --- a/src/Find_Command.php +++ b/src/Find_Command.php @@ -234,7 +234,7 @@ private function recurse_directory( $path ) { // Don't recurse directories that probably don't have a WordPress installation. if ( ! $this->skip_ignored_paths ) { // Assume base path doesn't need comparison - $compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '/' ) . '#', '', $path ); + $compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '#' ) . '#', '', $path ); // Ignore all hidden system directories $bits = explode( '/', trim( $compared_path, '/' ) ); $current_dir = array_pop( $bits );