Comparing version 0.3.1 to 0.3.2
15
index.js
@@ -52,10 +52,13 @@ /*! | ||
function replaceStr(str, pattern, replacement) { | ||
var i = str.indexOf(pattern); | ||
var end = i + pattern.length; | ||
str = str.substr(0, i) + replacement + str.substr(end, str.length); | ||
if (str.indexOf(pattern, end) !== -1) { | ||
str = replace(str, pattern, replacement); | ||
function replaceStr(str, token, replacement) { | ||
var i, from = 0; | ||
while (str.indexOf(token, from) !== -1) { | ||
i = str.indexOf(token, from); | ||
from = i + token.length; | ||
str = str.substr(0, i) | ||
+ replacement | ||
+ str.substr(from, str.length); | ||
from = i + replacement.length; | ||
} | ||
return str; | ||
} |
{ | ||
"name": "get-value", | ||
"description": "Use property paths (`a.b.c`) get a nested value from an object.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://github.com/jonschlinkert/get-value", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -70,2 +70,2 @@ # get-value [![NPM version](https://badge.fury.io/js/get-value.svg)](http://badge.fury.io/js/get-value) | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 26, 2014._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 01, 2014._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22708
704
0