Skip to content

Commit b239513

Browse files
committed
chore: add back comments
1 parent 7f77655 commit b239513

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/Tokenizers/PreTokenizer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ public extension String {
298298
return result
299299
}
300300

301+
/// This version supports capture groups, wheres the one above doesn't
301302
func split(by captureRegex: NSRegularExpression) -> [String] {
303+
// Find the matching capture groups
302304
let selfRange = NSRange(startIndex..<endIndex, in: self)
303305
let matches = captureRegex.matches(in: self, options: [], range: selfRange)
304306

0 commit comments

Comments
 (0)