github-pages-deploy-action/node_modules/core-js-pure/internals/not-a-regexp.js

8 lines
194 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
var isRegExp = require('../internals/is-regexp');
module.exports = function (it) {
if (isRegExp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};