prototypes
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -141,2 +141,3 @@ 'use strict'; | ||
{ | ||
if (!this.contains(find)) return this; | ||
return this.split(find).join(replace); | ||
@@ -161,2 +162,3 @@ } | ||
} | ||
if (!this.containsIgnoreCase(find)) return this; | ||
var newCase = new RegExp(find, 'i'); | ||
@@ -176,2 +178,3 @@ return this.replace(newCase, replace); | ||
} | ||
if (!this.containsIgnoreCase(find)) return this; | ||
var newCase = new RegExp(find, 'gi'); | ||
@@ -178,0 +181,0 @@ return this.replace(newCase, replace); |
{ | ||
"name": "prototypes", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "Some common prototypes for node.js: string.startsWith(), object.countProperties() and more. Facilities for functional programming with objects: object.forEach(), object.filter(). Functions are added safely using Object.defineProperty().", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/prototypes", |
31181
734