Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit e5796c3

Browse files
authored
use utf16 for tag ranges (#1738)
1 parent ce80b30 commit e5796c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Issues/Comments/Markdown/String+DetectShortlink.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extension String {
6363
}
6464

6565
// add remaining rightmost text
66-
if let right = substring(with: NSRange(location: currentRight, length: utf8.count - currentRight)) {
66+
if let right = substring(with: NSRange(location: currentRight, length: utf16.count - currentRight)) {
6767
builder.add(text: right)
6868
}
6969
}

0 commit comments

Comments
 (0)