Cscott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/230313
Change subject: Support bitcoin:, redis:, urn:, xmpp:, etc protocols.
......................................................................
Support bitcoin:, redis:, urn:, xmpp:, etc protocols.
Our precondition optimization for autolinks was missing a number of
possible initial characters corresponding to valid protocols configured
by default on mediawiki. Rather than try to add these piecemeal, just
allow [A-Za-z] as initial characters when checking for autolinks.
Change-Id: I84bed603cc7945b1e2d5680a507ae0f8ebd6f994
---
M lib/pegTokenizer.pegjs.txt
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/13/230313/1
diff --git a/lib/pegTokenizer.pegjs.txt b/lib/pegTokenizer.pegjs.txt
index 221347a..3259c88 100644
--- a/lib/pegTokenizer.pegjs.txt
+++ b/lib/pegTokenizer.pegjs.txt
@@ -1795,7 +1795,7 @@
*/
urltext = ( $[^-'<~[{\n\pPrRfFgGhHiImMnNsStTwW_|!:;\]} &=]+
- / & [/fFgGhHiImMnNsStTwWIPR] al:autolink { return al; }
+ / & [/A-Za-z] al:autolink { return al; }
/ & "&" he:htmlentity { return he; }
// Convert trailing space into
// XXX: This should be moved to a serializer
--
To view, visit https://gerrit.wikimedia.org/r/230313
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I84bed603cc7945b1e2d5680a507ae0f8ebd6f994
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits