diff --git a/src/Macros/StrMacros.php b/src/Macros/StrMacros.php index 5322fdc..767a394 100644 --- a/src/Macros/StrMacros.php +++ b/src/Macros/StrMacros.php @@ -397,6 +397,7 @@ public static function linesToCollection(): void return Collection::make($items) ->map(function ($item) { $item = trim($item); + // Remove trailing backslashes return rtrim($item, '\\'); })