From c6ef0a95bff1746b9e98cd5a3bc3ec5a054132ef Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 25 Mar 2015 12:25:08 +0000 Subject: [PATCH] prevent frontdoor from crashing --- node_modules/frontdoor/lib/types.js | 1 + 1 file changed, 1 insertion(+) diff --git a/node_modules/frontdoor/lib/types.js b/node_modules/frontdoor/lib/types.js index 9256c8aa..1980238a 100644 --- a/node_modules/frontdoor/lib/types.js +++ b/node_modules/frontdoor/lib/types.js @@ -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];