diff --git a/lib/underscore.string.js b/lib/underscore.string.js index 221cf48f..17bc1cbb 100644 --- a/lib/underscore.string.js +++ b/lib/underscore.string.js @@ -478,3 +478,12 @@ } }(this || window)); + +_._contains = _.contains; +_.contains = function(a,b) { + if (typeof a == "string" && typeof b == "string") { + return _.str.contains(a,b) + } else { + return _._contains(a,b); + } +}; \ No newline at end of file