Skip to content

Commit

Permalink
Update ExtractionPattern.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoSax committed Jul 6, 2022
1 parent eab0ccc commit 16f2f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Ghostwriter/ExtractionPattern.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class ExtractionPattern: Codable
}

print(match.numberOfRanges)
let matchRange = match.range(at: 0)
let matchRange = match.range(at: 1)

// Extract the substring matching the capture group
print("data count: \(x.data.count), string count: \(x.count)")
Expand Down

0 comments on commit 16f2f99

Please sign in to comment.