Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
Co-authored-by: Pascal Birchler <[email protected]>
  • Loading branch information
jkrrv and swissspidy authored Feb 13, 2024
1 parent cf65115 commit 5b196fd
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/", '', Utils\normalize_path( $this->main_file_path ) )
ltrim( str_replace( "$this->source/", '', Utils\normalize_path( $this->main_file_path ) ), '/' )
);
}

Expand Down

0 comments on commit 5b196fd

Please sign in to comment.