diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index 7fe9940..3b5b914 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -628,7 +628,7 @@ protected function extract_strings() { if ( $this->main_file_path && $this->location ) { $translation->addReference( - str_replace( "$this->source/", '', $this->main_file_path ) + ltrim( str_replace( "$this->source/", '', Utils\normalize_path( $this->main_file_path ) ), '/' ) ); }