Skip to content

Commit

Permalink
Replaced .split with .components
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-ludwig committed Dec 1, 2023
1 parent cbc64c5 commit 65d4d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeEdit/Features/Documents/WorkspaceDocument+Search.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ extension WorkspaceDocument {
}

await withTaskGroup(of: SearchResultMatchModel?.self) { group in
for (lineNumber, line) in string.split(separator: "\n").lazy.enumerated() {
for (lineNumber, line) in string.components(separatedBy: .whitespacesAndNewlines).lazy.enumerated() {
group.addTask {
let rawNoSpaceLine = line.trimmingCharacters(in: .whitespacesAndNewlines)
let noSpaceLine = rawNoSpaceLine.lowercased()
Expand Down

0 comments on commit 65d4d65

Please sign in to comment.