Skip to content

Commit f96ace3

Browse files
authored
bugfixed:图片格式为大写时不能上传
1 parent 5b3ceb8 commit f96ace3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/image-dialog/image-dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
fileInput.bind("change", function() {
131131
var fileName = fileInput.val();
132-
var isImage = new RegExp("(\\.(" + settings.imageFormats.join("|") + "))$"); // /(\.(webp|jpg|jpeg|gif|bmp|png))$/
132+
var isImage = new RegExp("(\\.(" + settings.imageFormats.join("|") + "))$", "i"); // /(\.(webp|jpg|jpeg|gif|bmp|png))$/
133133

134134
if (fileName === "")
135135
{

0 commit comments

Comments
 (0)