Browse Source
Merge pull request #281 from comdeng/patch-1
bugfixed:图片格式为大写时不能上传
master
pandao
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
plugins/image-dialog/image-dialog.js
|
|
@ -129,7 +129,7 @@ |
|
|
|
|
|
|
|
fileInput.bind("change", function() { |
|
|
|
var fileName = fileInput.val(); |
|
|
|
var isImage = new RegExp("(\\.(" + settings.imageFormats.join("|") + "))$"); // /(\.(webp|jpg|jpeg|gif|bmp|png))$/
|
|
|
|
var isImage = new RegExp("(\\.(" + settings.imageFormats.join("|") + "))$", "i"); // /(\.(webp|jpg|jpeg|gif|bmp|png))$/
|
|
|
|
|
|
|
|
if (fileName === "") |
|
|
|
{ |
|
|
|