We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c054128 + 9802b0d commit 2c67b53Copy full SHA for 2c67b53
src/Exports/Concerns/WithFilename.php
@@ -27,7 +27,7 @@ abstract protected function getDefaultExtension(): string;
27
28
protected function ensureFilenameHasExtension(string $filename): string
29
{
30
- return Str::contains($filename, '.')
+ return Str::of($filename)->test('/\.\w{3,4}$/')
31
? $filename
32
: $filename.'.'.$this->getDefaultExtension();
33
}
0 commit comments