@algolia/netlify-plugin-crawler
Version:
This plugin links your Netlify site with Algolia's Crawler. It will trigger a crawl on each successful build.
9 lines (8 loc) • 374 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeRegExp = void 0;
// Taken from https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
function escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}
exports.escapeRegExp = escapeRegExp;
;