r105289 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105288‎ | r105289 | r105290 >
Date:12:26, 6 December 2011
Author:gwicke
Status:deferred
Tags:
Comment:
Don't match internal links with url as target. 161 passing.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/parser/pegParser.pegjs.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/parser/pegParser.pegjs.txt
@@ -797,7 +797,9 @@
798798 / !"}}" x:([^|\n]) { return {type: 'TEXT', value: x} }
799799
800800 wikilink
801 - = "[[" target:link_target text:("|" lt:link_text { return lt })* "]]" suffix:text? {
 801+ = "[["
 802+ ! url
 803+ target:link_target text:("|" lt:link_text { return lt })* "]]" suffix:text? {
802804 var obj = {
803805 type: 'TAG',
804806 name: 'a',

Status & tagging log