Skip to content

Commit ecfcaf4

Browse files
authored
Merge pull request #495 from jasper-ter-veen/master
Update valet links command to parse out https for non-.dev domains
2 parents 83eae5a + 117a937 commit ecfcaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/Valet/Site.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function getCertificates($path)
8585
return collect($this->files->scanDir($path))->filter(function ($value, $key) {
8686
return ends_with($value, '.crt');
8787
})->map(function ($cert) {
88-
return substr($cert, 0, -8);
88+
return substr($cert, 0, strripos($cert, '.', -5));
8989
})->flip();
9090
}
9191

0 commit comments

Comments
 (0)