import { c as callBound } from "../call-bind/callBound.js";
import { i as isRegex } from "../is-regex/index.js";
import { t as type } from "../es-errors/type.js";
var safeRegexTest;
var hasRequiredSafeRegexTest;
function requireSafeRegexTest() {
  if (hasRequiredSafeRegexTest)
    return safeRegexTest;
  hasRequiredSafeRegexTest = 1;
  var callBound$1 = callBound;
  var isRegex$1 = isRegex;
  var $exec = callBound$1("RegExp.prototype.exec");
  var $TypeError = type;
  safeRegexTest = function regexTester(regex) {
    if (!isRegex$1(regex)) {
      throw new $TypeError("`regex` must be a RegExp");
    }
    return function test(s) {
      return $exec(regex, s) !== null;
    };
  };
  return safeRegexTest;
}
export {
  requireSafeRegexTest as __require
};
//# sourceMappingURL=index.js.map
