Skip to content

Commit dad33bf

Browse files
authored
Merge pull request #5 from derekalmond/patch-1
Update ExtensionRule.php
2 parents 9577990 + 3a32200 commit dad33bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Validation/Rules/ExtensionRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function isValid(): bool
5757
pathinfo($this->value, PATHINFO_EXTENSION)
5858
);
5959

60-
return ! empty($extension) && in_array($extension, $extensions);
60+
return ! empty($extension) && in_array(strtolower($extension), $extensions);
6161
}
6262

6363
return true;

0 commit comments

Comments
 (0)