aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-07-09 11:17:20 -0700
committerJez Ng <me@jezng.com>2013-07-09 20:42:13 -0700
commit4dff05193729be353a6d80e83c4f5e1a108d9512 (patch)
treeaa27238578a70ed1c6a3809b6275b3ca3f68ea0c /src/library_browser.js
parent5d3ff92c55b8830c5f1c670a252107d3e8cded60 (diff)
Bunch of changes to support Syobon Action.
Diffstat (limited to 'src/library_browser.js')
-rw-r--r--src/library_browser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index d9fd3ee5..822e99d6 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -84,7 +84,7 @@ mergeInto(LibraryManager.library, {
var imagePlugin = {};
imagePlugin['canHandle'] = function(name) {
- return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/.exec(name);
+ return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
};
imagePlugin['handle'] = function(byteArray, name, onload, onerror) {
var b = null;