Skip to content

Commit

Permalink
refactor: Use relative paths for file header references windows fix
Browse files Browse the repository at this point in the history
Ref:

* #384
* #383
  • Loading branch information
saas786 committed May 14, 2024
1 parent aa8338b commit aa846b3
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 @@ -630,7 +630,7 @@ protected function extract_strings() {

if ( $this->main_file_path && $this->location ) {
$translation->addReference(
ltrim( str_replace( "$this->source/", '', Utils\normalize_path( $this->main_file_path ) ), '/' )
ltrim( str_replace( Utils\normalize_path( "$this->source/" ), '', Utils\normalize_path( $this->main_file_path ) ), '/' )
);
}

Expand Down

0 comments on commit aa846b3

Please sign in to comment.