Closed GeoSot closed 3 months ago
https://github.com/malzariey/filament-daterangepicker-filter/blob/16ad4caa5ca6addf6128db6ebeea88d0f7cca9c0/src/Filters/DateRangeFilter.php#L192
Exploding using space, may fail in case of custom formats like M j, Y as they already have spaces between them. Maybe explode(' - ', $datesString); or explode( $tis->separator, $datesString); would be safer
M j, Y
explode(' - ', $datesString);
explode( $tis->separator, $datesString);
Addressed in latest version. v2.5.1
Thanks for raising the issue
https://github.com/malzariey/filament-daterangepicker-filter/blob/16ad4caa5ca6addf6128db6ebeea88d0f7cca9c0/src/Filters/DateRangeFilter.php#L192
Exploding using space, may fail in case of custom formats like
M j, Y
as they already have spaces between them. Maybeexplode(' - ', $datesString);
orexplode( $tis->separator, $datesString);
would be safer