Bump to v3.0.3.

This commit is contained in:
jdalton
2015-02-13 09:18:57 -08:00
committed by John-David Dalton
parent e2db58867b
commit 415e8ce0ed
156 changed files with 599 additions and 625 deletions

View File

@@ -1,4 +1,4 @@
# lodash.isregexp v3.0.2
# lodash.isregexp v3.0.3
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.isRegExp` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var isRegExp = require('lodash.isregexp');
```
See the [documentation](https://lodash.com/docs#isRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isregexp) for more details.
See the [documentation](https://lodash.com/docs#isRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.isregexp) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.0.2 (Custom Build) <https://lodash.com/>
* lodash 3.0.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -10,26 +10,42 @@
/** `Object#toString` result references. */
var regexpTag = '[object RegExp]';
/**
* Checks if `value` is object-like.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/** Used for native method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objToString = objectProto.toString;
/**
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(1);
* // => false
*/
function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is classified as a `RegExp` object.
*
@@ -47,7 +63,7 @@ var objToString = objectProto.toString;
* // => false
*/
function isRegExp(value) {
return isObjectLike(value) && objToString.call(value) == regexpTag;
return isObject(value) && objToString.call(value) == regexpTag;
}
module.exports = isRegExp;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.isregexp",
"version": "3.0.2",
"version": "3.0.3",
"description": "The modern build of lodashs `_.isRegExp` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",