"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.escapeRegExp = escapeRegExp;

// ets_tracing: off

/**
 * Escapes characters in a string that have semantic meaning when used within a
 * regular expression.
 *
 * ```typescript
 * const s = "(hello)"
 * escapeRegExp(s)
 * // => "\(hello\)"
 * ```
 */
function escapeRegExp(s) {
  return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
//# sourceMappingURL=escapeRegExp.js.map