kopia lustrzana https://github.com/c9/core
prevent frontdoor from crashing
rodzic
f428acbb42
commit
c6ef0a95bf
|
@ -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];
|
||||
|
|
Ładowanie…
Reference in New Issue