Comparing version 3.1.0 to 3.1.1
@@ -495,2 +495,5 @@ "use strict"; | ||
const startByteIndex = this.findByteIndex(str, start); | ||
if (startByteIndex < 0) { | ||
return -1; | ||
} | ||
const index = str.indexOf(searchValue, startByteIndex); | ||
@@ -525,2 +528,5 @@ return index < 0 ? -1 : this.findCharIndex(str, index); | ||
const startByteIndex = this.findByteIndex(str, start); | ||
if (startByteIndex < 0) { | ||
return -1; | ||
} | ||
index = str.lastIndexOf(searchValue, startByteIndex); | ||
@@ -527,0 +533,0 @@ } |
{ | ||
"name": "utfstring", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "UTF-safe string operations", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
75359
1381