locale-index-of
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -59,7 +59,6 @@ export default function exported(Intl) { | ||
*segment(string) { | ||
const { length } = string; | ||
// have to use that instead of `for segment of string` because we need index of chars, not code points | ||
for (let index = 0; index < length; index += 1) { | ||
const segment = string[index]; | ||
let index = 0; | ||
for (const segment of string) { | ||
yield { segment, index }; | ||
index += segment.length; | ||
} | ||
@@ -66,0 +65,0 @@ } |
{ | ||
"name": "locale-index-of", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "A prollyfill for String.prototype.localeIndexOf - a locale-aware Intl-powered version of indexOf.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9106
90