From 7f19c10da97b140e7e406cf0503ba9de831c39e2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 16 Jul 2014 11:30:34 -0700 Subject: [PATCH] Use the correct `_.isRegExp` for the `underscore` build. --- dist/lodash.underscore.js | 2 +- dist/lodash.underscore.min.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index 3c3b1a31a..e4b0cc546 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -4795,7 +4795,7 @@ * // => false */ function isRegExp(value) { - return (value && typeof value == 'object' && toString.call(value) == regexpClass) || false; + return (isObject(value) && toString.call(value) == regexpClass) || false; } /** diff --git a/dist/lodash.underscore.min.js b/dist/lodash.underscore.min.js index 44500a918..d7e8bef5d 100644 --- a/dist/lodash.underscore.min.js +++ b/dist/lodash.underscore.min.js @@ -37,9 +37,9 @@ r=At(gt((r-n)/(t||1)),0);for(var u=Array(r);++er?0:r))},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?At(e+t,0):xt(t||0,e-1))+1);e--;)if(n[e]===r)return e;return-1 -},o.max=tr,o.min=function(n,r,t){var e=1/0,u=e,o=typeof r;if("number"!=o&&"string"!=o||!t||t[r]!==n||(r=null),null==r)for(t=-1,n=P(n),o=n.length;++tr?0:+r||0,n.length),n)},Er(pr({},o)),o.VERSION="3.0.0-pre",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},f("pop push reverse shift sort splice unshift".split(" "),function(n){var r=ft[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Ot.spliceObjects||0!==n.length||delete n[0],this}}),f(["concat","join","slice"],function(n){var r=ft[n]; -o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(tt._=o, define("underscore",function(){return o})):et&&ut?it?(ut.exports=o)._=o:et._=o:tt._=o}).call(this); \ No newline at end of file +},o.isFunction=yr,o.isNaN=function(n){return br(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=br,o.isObject=mr,o.isRegExp=function(n){return mr(n)&&pt.call(n)==Lr||false},o.isString=_r,o.isUndefined=function(n){return typeof n=="undefined"},o.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:kr:(r=e-(r||0),J(n,0>r?0:r))},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?At(e+t,0):xt(t||0,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.max=tr,o.min=function(n,r,t){var e=1/0,u=e,o=typeof r; +if("number"!=o&&"string"!=o||!t||t[r]!==n||(r=null),null==r)for(t=-1,n=P(n),o=n.length;++tr?0:+r||0,n.length),n)},Er(pr({},o)),o.VERSION="3.0.0-pre",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__ +},f("pop push reverse shift sort splice unshift".split(" "),function(n){var r=ft[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Ot.spliceObjects||0!==n.length||delete n[0],this}}),f(["concat","join","slice"],function(n){var r=ft[n];o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(tt._=o, define("underscore",function(){return o +})):et&&ut?it?(ut.exports=o)._=o:et._=o:tt._=o}).call(this); \ No newline at end of file