Closed fxcoudert closed 10 months ago
Could you pls fix?
Not really. I've added \(\)
to the allowed characters in my own use case, but I'm pretty sure the regexp is not conformant and will fail to catch other valid URLs. Probably better to use something designed and tested by someone else.
@Jxck-S fyi
The regexp in
extract_url_byte_positions
at https://github.com/MarshalX/atproto/blob/main/examples/advanced_usage/auto_hyperlinks.py does not appear to detect all valid URLs. Take for example:This is misdetected, and the URL is stopped before
(