ActiveLabel.swift
ActiveLabel.swift copied to clipboard
Fix value of urlPattern in RegexParser
Summary
- Fixed the problem that other string after url are recognized as url
- Add a file RegexParserTest.swift
Screenshot
Before | After |
---|---|
@pisces i just noticed that deep links like my-bundle-id://resource/id
aren't picked up by the urlPattern, i tend to use them a lot in customer support context while on device, more reliable "user proofing" than a universal link.
Anyways, i guess i can add a custom handler. That NSRegularExpression
escaping in the regexp string for URL makes it so much harder to decompose
@rromanchuk I think the existing url pattern doesn't support custom scheme, right?