replace-last
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -13,4 +13,4 @@ 'use strict'; | ||
it('number', function() { | ||
var result = replaceLast(778, 8, 7); | ||
expect(result).to.equal('777'); | ||
var result = replaceLast(777, 7, 8); | ||
expect(result).to.equal('778'); | ||
}); | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "replace-last", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "JavaScript replaceLast function - Replaces last match for pattern in string with replacement", | ||
@@ -5,0 +5,0 @@ "author": "danday74", |
@@ -69,4 +69,4 @@ # replace-last | ||
replaceLast(778, 8, 7); | ||
// => '777' | ||
replaceLast(777, 7, 8); | ||
// => '778' | ||
``` | ||
@@ -73,0 +73,0 @@ |
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