"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const callBound = require("../call-bind/callBound.cjs");
const index = require("../is-regex/index.cjs");
const type = require("../es-errors/type.cjs");
var safeRegexTest;
var hasRequiredSafeRegexTest;
function requireSafeRegexTest() {
  if (hasRequiredSafeRegexTest)
    return safeRegexTest;
  hasRequiredSafeRegexTest = 1;
  var callBound$1 = callBound.callBound;
  var isRegex = index.isRegex;
  var $exec = callBound$1("RegExp.prototype.exec");
  var $TypeError = type.type;
  safeRegexTest = function regexTester(regex) {
    if (!isRegex(regex)) {
      throw new $TypeError("`regex` must be a RegExp");
    }
    return function test(s) {
      return $exec(regex, s) !== null;
    };
  };
  return safeRegexTest;
}
exports.__require = requireSafeRegexTest;
//# sourceMappingURL=index.cjs.map
