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();
|
return value.toString();
|
||||||
};
|
};
|
||||||
exports.RegExp.prototype.check = function(value) {
|
exports.RegExp.prototype.check = function(value) {
|
||||||
|
if (typeof value !== "string") return false;
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
var match = value.match(this.re);
|
var match = value.match(this.re);
|
||||||
return match && value === match[0];
|
return match && value === match[0];
|
||||||
|
|
Ładowanie…
Reference in New Issue