Skip to content

Commit

Permalink
Merge pull request #384 from jkrrv/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Feb 13, 2024
2 parents ca7a44a + 5b196fd commit c251a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MakePotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ), '/' )
);
}

Expand Down

0 comments on commit c251a9c

Please sign in to comment.