On 01/08/2014 01:29 PM, Emmanuel Engelhart wrote:
> Not clean and not robust, because what we will have to build (to
> identify an external link) a not so easy to maintain heuristic.

The good news is that removal of ./ also entails percent-encoding
literal colons in internal links to avoid them being interpreted as
protocols. That in turn makes matching for external links pretty simple:

/^[a-zA-Z]+:/

No need for an explicit list of protocols there.

Gabriel

_______________________________________________
Wikitext-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to