hexo/node_modules/is-regexp/index.js

5 lines
116 B
JavaScript

'use strict';
module.exports = function (re) {
return Object.prototype.toString.call(re) === '[object RegExp]';
};