prevent frontdoor from crashing

pull/51/merge
Fabian Jakobs 2015-03-25 12:25:08 +00:00
rodzic f428acbb42
commit c6ef0a95bf
1 zmienionych plików z 1 dodań i 0 usunięć

1
node_modules/frontdoor/lib/types.js wygenerowano vendored
Wyświetl plik

@ -53,6 +53,7 @@ exports.RegExp.prototype.parse = function(value) {
return value.toString();
};
exports.RegExp.prototype.check = function(value) {
if (typeof value !== "string") return false;
value = value.toString();
var match = value.match(this.re);
return match && value === match[0];