We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0669725 commit 85ab5b7Copy full SHA for 85ab5b7
src/Http/Controllers/UtilityController.php
@@ -30,7 +30,13 @@ public function __invoke(): array
30
31
// remove any non-wildcards first
32
$urls->reject(fn ($url) => Str::endsWith($url, '*'))
33
- ->each(fn ($url) => Tracker::remove($url));
+ ->each(function ($url) {
34
+ if (Str::endsWith($url, '/')) {
35
+ $url = substr($url, 0, -1);
36
+ }
37
+
38
+ Tracker::remove($url);
39
+ });
40
41
collect(Tracker::all())
42
->each(function ($data) use ($wildcards) {
0 commit comments