Skip to content

Commit aa846b3

Browse files
committed
refactor: Use relative paths for file header references windows fix
Ref: * #384 * #383
1 parent aa8338b commit aa846b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MakePotCommand.php

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

631631
if ( $this->main_file_path && $this->location ) {
632632
$translation->addReference(
633-
ltrim( str_replace( "$this->source/", '', Utils\normalize_path( $this->main_file_path ) ), '/' )
633+
ltrim( str_replace( Utils\normalize_path( "$this->source/" ), '', Utils\normalize_path( $this->main_file_path ) ), '/' )
634634
);
635635
}
636636

0 commit comments

Comments
 (0)