UNPKG

@kenchan0130/markdown-to-atlassian-wiki-markup

Version:
11 lines 458 B
"use strict"; 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