x/escape_string_regexp/mod.ts
123456// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.const matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;export function escapeStringRegexp(str: string): string { return str.replace(matchOperatorsRe, '\\$&');}