-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in String+UTF16.swift
- unescapeUTF16()
#35
Comments
On a fork of this project called Haring, we fixed this issue by adding the following line to the beginning of the function. It stops the crash, but perhaps there's a better fix.
|
-- Changes: - Fixed a bug parsing code elements with UTFDecoding see Issue #35 - Improved readability of code regex and limited until 3 ``` - Refactored Example project to support internet markdowns
This crash should not be happening anymore. But the code Element parser is not working 100% according to the Github parser if the language is specified it will appear on the final view and it shouldn't. Check out #37 for more information. |
I have experienced a crash in the
unescapeUTF16
method inString+UTF16.swift
. The markdown that led to the crash can be found here: https://github.com/apple/swift-evolution/blob/master/proposals/0240-ordered-collection-diffing.mdThe crash was found on the line
let endIndex = index(self.startIndex, offsetBy: $0 + 4)
in the following code snippet:The text was updated successfully, but these errors were encountered: