Closed janyou closed 8 years ago
Having the same issue, I believe it's happening here:
matches = expression.matchesInString(string, options: [], range: bounds)
We are sometimes getting bounds that seem illogical. We have negative bounds.length it seems.
Can you post some sample code that reproduces this issue?
Fixed in #14
use AttributedParser for .m file
crashed with: *\ -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: Range or index out of bounds
The crash seems to be happening in Parser.swift