@kenchan0130/markdown-to-atlassian-wiki-markup
Version:
Convert markdown to atlassian wiki markup
11 lines • 458 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.uniq = exports.escapeStringRegexp = void 0;
// See also: https://github.com/sindresorhus/escape-string-regexp
const escapeStringRegexp = (s) => {
return s.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
};
exports.escapeStringRegexp = escapeStringRegexp;
const uniq = (array) => [...new Set(array)];
exports.uniq = uniq;
//# sourceMappingURL=utils.js.map