pull/223/head
Fabian Jakobs 2015-10-29 15:18:16 +00:00
rodzic 4c6eb793de
commit 0c280207fb
1 zmienionych plików z 3 dodań i 3 usunięć

6
node_modules/c9/json-with-re.js wygenerowano vendored
Wyświetl plik

@ -11,9 +11,9 @@ exports.replacer = function(key, value) {
};
exports.reviver = function(key, value) {
if ((value || "").toString().indexOf("__REGEXP ") == 0) {
var m = value.split("__REGEXP ")[1].match(/\/(.*)\/(.*)?/);
return new RegExp(m[1], m[2] || "");
if ((value + "").indexOf("__REGEXP ") == 0) {
var m = value.match(/__REGEXP \/(.*)\/(.*)?/);
return new RegExp(m[1], m[2]);
}
else
return value;