@esfaenza/extensions 11.2.5 → 11.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1317,15 +1317,15 @@
1317
1317
  return "t";
1318
1318
  if (o === false)
1319
1319
  return "f";
1320
- if (o instanceof Date)
1321
- return "d:" + o.toString();
1320
+ if (Object.prototype.toString.call(o) === "[object Date]")
1321
+ return 'd:' + (0 + o);
1322
1322
  i = typeof o;
1323
1323
  if (i === "string")
1324
- return "s:" + o.replace(/([\\\\;])/g, "\\$1");
1324
+ return "s:" + o;
1325
1325
  if (i === "number")
1326
1326
  return "n:" + o;
1327
1327
  if (o instanceof Function)
1328
- return "m:" + o.toString().replace(/([\\\\;])/g, "\\$1");
1328
+ return "m:" + o.toString();
1329
1329
  if (o instanceof Array) {
1330
1330
  r = [];
1331
1331
  for (i = 0; i < o.length; i++) {