3 ms·
I don't understand what they are doing? I don't recall @ having special significance in a URL? I can only guess that they have two separate steps for transform
by Tichy 16y ago
I don't understand what they are doing? I don't recall @ having special significance in a URL?
I can only guess that they have two separate steps for transforming URLs into links and transforming @replies into links. Then they first run the URL transformer and then the @replies transformer, which would of course mess up the URL.
I have solved that problem in one of my Twitter apps (transforming both in one go), maybe I should send them a code snippet...
- js2 16y agoThey are trying to match URLs so that they can turn them into links. The @ character is valid in a URL. What I don't understand is why they don't URL encode the matching text.