Skip to content
This repository has been archived by the owner on May 8, 2022. It is now read-only.

Convert to swift 5 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Fuse/Classes/Fuse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public class Fuse {

// Exact match
if (pattern.text == text) {
return (0, [CountableClosedRange<Int>(0...textLength - 1)])
return (0, [0...textLength - 1])
}

let location = self.location
Expand Down
4 changes: 2 additions & 2 deletions Fuse/Classes/FuseUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ class FuseUtilities {
start = n
} else if bit == 0 && start != -1 {
end = n - 1
ranges.append(CountableClosedRange<Int>(start...end))
ranges.append(start...end)
start = -1
}
}
if mask.last == 1 {
ranges.append(CountableClosedRange<Int>(start...mask.count - 1))
ranges.append(start...mask.count - 1)
}
return ranges
}
Expand Down