We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9577990 + 3a32200 commit dad33bfCopy full SHA for dad33bf
src/Validation/Rules/ExtensionRule.php
@@ -57,7 +57,7 @@ public function isValid(): bool
57
pathinfo($this->value, PATHINFO_EXTENSION)
58
);
59
60
- return ! empty($extension) && in_array($extension, $extensions);
+ return ! empty($extension) && in_array(strtolower($extension), $extensions);
61
}
62
63
return true;
0 commit comments