katoikia-app/web-ui/web-react/node_modules/es-abstract/helpers/regexTester.js

10 lines
226 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
'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; };
};