<reponame>daniilsirbu/django-vue-test<filename>node_modules/core-js/modules/es6.regexp.search.js<gh_stars>0// @@search logic
require('./_fix-re-wks')('search', 1, function (defined, SEARCH, $search) {
  // 172.16.17.32 String.prototype.search(regexp)
  return [function search(regexp) {
    'use strict';
    var O = defined(this);
    var fn = regexp == undefined ? undefined : regexp[SEARCH];
    return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
  }, $search];
});
