"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.transformURL = exports.remapHashURL = void 0;

var cleanURL = url => (url || '').replace(/<mark>/gi, '').replace(/<\/mark>/gi, '').replace(/%3Cmark%3E/gi, '').replace(/%3C\/mark%3E/gi, '');

var remapHashURL = (specKey, url) => (url || '').replace(/#!\/(:?\d+\.\d+\/)?(\w+)\/(\w+)/gi, "/".concat(specKey, "/methods/$2/$3")).replace(/#!\/(:?\d+\.\d+\/)?(\w+)/gi, "/".concat(specKey, "/methods/$2"));

exports.remapHashURL = remapHashURL;

var transformURL = (specKey, url) => {
  return remapHashURL(specKey, cleanURL(url));
};

exports.transformURL = transformURL;
//# sourceMappingURL=utils.js.map