"use strict";

exports.__esModule = true;
exports.replaceSlash = void 0;
var _StringUtils = require("../utils/StringUtils");
var replaceSlash = value => {
  if (value === undefined || !(0, _StringUtils.isString)(value) || value.length === 0) {
    return value;
  }
  if (value.includes('//')) {
    var [protocol, ...rest] = value.split('//');
    var url = rest.join('//').replace(/\/$/, '').replaceAll('/', ' › ');
    return "".concat(protocol, "//").concat(url);
  } else {
    return value.replace(/\/$/, '').replaceAll('/', ' › ');
  }
};
exports.replaceSlash = replaceSlash;
//# sourceMappingURL=GooglePreviewUtils.js.map