Commit 4b1fad21 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

FileHandler2: fixed handling of empty extensions

parent 935b5244
......@@ -149,13 +149,13 @@ define([
},
_peers: M.handlersOpen,
_testExt: function (ext, value) {
return value instanceof Array ? ~value.indexOf(ext) : (value == ext);
return value instanceof Array ? ~value.indexOf(ext) : (value === ext);
},
check: function check(info) {
var ext = this.ext(info);
return check._super.call(this, info) &&
(this.fext == undefined || this._testExt(ext, this.fext)) &&
(this.fext === undefined || this._testExt(ext, this.fext)) &&
!this._testExt(ext, this.fextNot);
},
menu: function menu(info) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment