diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-28 00:38:50 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-28 00:40:43 +0200 |
commit | 7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 (patch) | |
tree | 6de9a1aebd150a23b7f8c273ec657a5d0a18fe3e /node_modules/core-js/fn/regexp | |
parent | 963b7a41feb29cc4be090a2446bdfe0c1f1bcd81 (diff) |
add linting (and some initial fixes)
Diffstat (limited to 'node_modules/core-js/fn/regexp')
-rw-r--r-- | node_modules/core-js/fn/regexp/constructor.js | 2 | ||||
-rw-r--r-- | node_modules/core-js/fn/regexp/flags.js | 5 | ||||
-rw-r--r-- | node_modules/core-js/fn/regexp/match.js | 5 | ||||
-rw-r--r-- | node_modules/core-js/fn/regexp/replace.js | 5 | ||||
-rw-r--r-- | node_modules/core-js/fn/regexp/search.js | 5 | ||||
-rw-r--r-- | node_modules/core-js/fn/regexp/split.js | 5 | ||||
-rw-r--r-- | node_modules/core-js/fn/regexp/to-string.js | 5 |
7 files changed, 32 insertions, 0 deletions
diff --git a/node_modules/core-js/fn/regexp/constructor.js b/node_modules/core-js/fn/regexp/constructor.js new file mode 100644 index 000000000..90c13513d --- /dev/null +++ b/node_modules/core-js/fn/regexp/constructor.js @@ -0,0 +1,2 @@ +require('../../modules/es6.regexp.constructor'); +module.exports = RegExp;
\ No newline at end of file diff --git a/node_modules/core-js/fn/regexp/flags.js b/node_modules/core-js/fn/regexp/flags.js new file mode 100644 index 000000000..ef84ddbd1 --- /dev/null +++ b/node_modules/core-js/fn/regexp/flags.js @@ -0,0 +1,5 @@ +require('../../modules/es6.regexp.flags'); +var flags = require('../../modules/_flags'); +module.exports = function(it){ + return flags.call(it); +};
\ No newline at end of file diff --git a/node_modules/core-js/fn/regexp/match.js b/node_modules/core-js/fn/regexp/match.js new file mode 100644 index 000000000..400d0921e --- /dev/null +++ b/node_modules/core-js/fn/regexp/match.js @@ -0,0 +1,5 @@ +require('../../modules/es6.regexp.match'); +var MATCH = require('../../modules/_wks')('match'); +module.exports = function(it, str){ + return RegExp.prototype[MATCH].call(it, str); +};
\ No newline at end of file diff --git a/node_modules/core-js/fn/regexp/replace.js b/node_modules/core-js/fn/regexp/replace.js new file mode 100644 index 000000000..adde0adf6 --- /dev/null +++ b/node_modules/core-js/fn/regexp/replace.js @@ -0,0 +1,5 @@ +require('../../modules/es6.regexp.replace'); +var REPLACE = require('../../modules/_wks')('replace'); +module.exports = function(it, str, replacer){ + return RegExp.prototype[REPLACE].call(it, str, replacer); +};
\ No newline at end of file diff --git a/node_modules/core-js/fn/regexp/search.js b/node_modules/core-js/fn/regexp/search.js new file mode 100644 index 000000000..4e149d05a --- /dev/null +++ b/node_modules/core-js/fn/regexp/search.js @@ -0,0 +1,5 @@ +require('../../modules/es6.regexp.search'); +var SEARCH = require('../../modules/_wks')('search'); +module.exports = function(it, str){ + return RegExp.prototype[SEARCH].call(it, str); +};
\ No newline at end of file diff --git a/node_modules/core-js/fn/regexp/split.js b/node_modules/core-js/fn/regexp/split.js new file mode 100644 index 000000000..b92d09fa6 --- /dev/null +++ b/node_modules/core-js/fn/regexp/split.js @@ -0,0 +1,5 @@ +require('../../modules/es6.regexp.split'); +var SPLIT = require('../../modules/_wks')('split'); +module.exports = function(it, str, limit){ + return RegExp.prototype[SPLIT].call(it, str, limit); +};
\ No newline at end of file diff --git a/node_modules/core-js/fn/regexp/to-string.js b/node_modules/core-js/fn/regexp/to-string.js new file mode 100644 index 000000000..29d5d037a --- /dev/null +++ b/node_modules/core-js/fn/regexp/to-string.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es6.regexp.to-string'); +module.exports = function toString(it){ + return RegExp.prototype.toString.call(it); +};
\ No newline at end of file |