mirror of
https://github.com/iv-org/invidious.git
synced 2026-02-17 17:48:32 -06:00
Update src/invidious/videos/description.cr
Co-authored-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
parent
51aab0681b
commit
698cd49529
@ -86,7 +86,8 @@ def parse_description(desc, video_id : String) : String?
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Copy the end of the string (past the last command).
|
# Copy the end of the string (past the last command).
|
||||||
remaining_length = utf16_length(content) - index
|
content_size = content.ascii_only? ? content.size : utf16_length(content)
|
||||||
|
remaining_length = content_size - index
|
||||||
copy_string(str, iter, remaining_length) if remaining_length > 0
|
copy_string(str, iter, remaining_length) if remaining_length > 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user