Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Ignore case when changing title
Browse files Browse the repository at this point in the history
  • Loading branch information
Roelof Roos committed Jan 22, 2021
1 parent 07452e3 commit 4ecab9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/PollController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function download(Poll $poll)
}

$pollTitle = Str::ascii($poll->title, 'nl');
$pollTitle = preg_replace('/[^a-z0-9\s]+/', '-', $pollTitle);
$pollTitle = preg_replace('/[^a-z0-9\s]+/i', '-', $pollTitle);

return Storage::download($expectedFile, sprintf(
'Uitslagen stemming %d - %s.ods',
Expand Down

0 comments on commit 4ecab9a

Please sign in to comment.