jenkins-bot has submitted this change and it was merged.

Change subject: Allow equal and tilde chars in wikilink targets
......................................................................


Allow equal and tilde chars in wikilink targets

This fixes link parsing and -roundtripping on [[ja:岩波版聖書]].

Simple test cases:
[[Special:Booksources/isbn=4-00-026157-6]]
[[Foo~bar]]

Change-Id: I6b87013fccec2ff1d524f853684f5f4c1d8d5a17
---
M js/lib/pegTokenizer.pegjs.txt
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Cscott: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/js/lib/pegTokenizer.pegjs.txt b/js/lib/pegTokenizer.pegjs.txt
index c9bd101..d418490 100644
--- a/js/lib/pegTokenizer.pegjs.txt
+++ b/js/lib/pegTokenizer.pegjs.txt
@@ -2349,7 +2349,8 @@
   }
 
 wikilink_preprocessor_text
-  = r:( t:[^<~[{\n\r\t|!\]}{ &=]+ { return t.join(''); }
+  = r:( t:[^<[{\n\r\t|!\]}{ &]+ { return t.join(''); }
+        // XXX gwicke: any more chars we need to allow here?
         / !inline_breaks ( directive / !"]]" ( text_char / [!] ) )
     )+ {
       return flatten_stringlist ( r );

-- 
To view, visit https://gerrit.wikimedia.org/r/60852
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6b87013fccec2ff1d524f853684f5f4c1d8d5a17
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to