Skip to content

Commit c251a9c

Browse files
authored
Merge pull request #384 from jkrrv/patch-1
2 parents ca7a44a + 5b196fd commit c251a9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MakePotCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ protected function extract_strings() {
628628

629629
if ( $this->main_file_path && $this->location ) {
630630
$translation->addReference(
631-
str_replace( "$this->source/", '', $this->main_file_path )
631+
ltrim( str_replace( "$this->source/", '', Utils\normalize_path( $this->main_file_path ) ), '/' )
632632
);
633633
}
634634

0 commit comments

Comments
 (0)