From 5b196fdb6f0d2a2bc2fa35a395f447eba342c22d Mon Sep 17 00:00:00 2001 From: James K Date: Tue, 13 Feb 2024 08:35:58 -0500 Subject: [PATCH] Review Co-authored-by: Pascal Birchler --- src/MakePotCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index b5adb5d..3b5b914 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -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 ) ), '/' ) ); }