"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _default;

function _react() {
  const data = _interopRequireDefault(require("react"));

  _react = function _react() {
    return data;
  };

  return data;
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _default(jsonStr) {
  return jsonStr.replace(/\"component\": (\"(.+?)\")/g, (global, m1, m2) => {
    return `"component": ${m2.replace(/\^/g, '"')}`;
  }).replace(/\"Routes\": (\"(.+?)\")/g, `"Routes": $2`).replace(/\\r\\n/g, '\r\n').replace(/\\n/g, '\r\n');
}