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

export 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"));
export var transformURL = (specKey, url) => {
  return remapHashURL(specKey, cleanURL(url));
};
//# sourceMappingURL=utils.js.map