Constnium/node_modules/es-abstract/helpers/regexTester.js
2022-06-23 02:27:43 +02:00

9 lines
226 B
JavaScript

'use strict';
var callBound = require('call-bind/callBound');
var $exec = callBound('RegExp.prototype.exec');
module.exports = function regexTester(regex) {
return function test(s) { return $exec(regex, s) !== null; };
};