Skip to content

[Bug] Seems to break with certain emoji strings #28

Description

@codeOfRobin

Hey @daltoniam !

I just tried running an emoji-laden string past MDEmphasisPattern, and it seems to crash with an Fatal error: cannot increment beyond endIndex in

let end = mutText.index(mutText.startIndex, offsetBy: range.location + range.length)

I have a fork with a test case added, but I've messed with a lot of build settings(from xcodegen: https://github.com/yonaskolb/XcodeGen) and don't think you'd want to merge. Check this out if you're interested though: codeOfRobin@62d6c4d

I'll try fixing it in my spare time, but I'd love to hear your thoughts on it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions