We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bbd5c0 commit caf2751Copy full SHA for caf2751
Sources/ScriptToolkit/DataExtension.swift
@@ -12,7 +12,7 @@ extension Data {
12
var selfIndex = self.startIndex
13
var dataIndex = data.startIndex
14
15
- while selfIndex <= self.endIndex && dataIndex <= data.endIndex {
+ while selfIndex < self.endIndex && dataIndex < data.endIndex {
16
if dataIndex == data.endIndex {
17
return selfIndex - data.count
18
}
0 commit comments