保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 26a09f08cf1ed43c640879f23fdad56c5c9282f7
PAMapp/node_modules/es-abstract/helpers/regexTester.js
@@ -1,11 +1,9 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bind/callBound');
var $test = GetIntrinsic('RegExp.prototype.test');
var callBind = require('call-bind');
var $exec = callBound('RegExp.prototype.exec');
module.exports = function regexTester(regex) {
   return callBind($test, regex);
   return function test(s) { return $exec(regex, s) !== null; };
};