Skip to content

Commit 5921e68

Browse files
committed
Update delimiter used in preg_quote
1 parent a396128 commit 5921e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Find_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private function recurse_directory( $path ) {
234234
// Don't recurse directories that probably don't have a WordPress installation.
235235
if ( ! $this->skip_ignored_paths ) {
236236
// Assume base path doesn't need comparison
237-
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '/' ) . '#', '', $path );
237+
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '#' ) . '#', '', $path );
238238
// Ignore all hidden system directories
239239
$bits = explode( '/', trim( $compared_path, '/' ) );
240240
$current_dir = array_pop( $bits );

0 commit comments

Comments
 (0)