mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Accept wikilink parameters with dangling equal ('|arg=|')
Change-Id: Ib4f6d186da2a74522b17c377dac5c9a7de7e5861
This commit is contained in:
parent
1d70e7b81c
commit
30a83d7fd7
|
@ -1030,7 +1030,7 @@ link_text
|
||||||
h:inline
|
h:inline
|
||||||
// 'equal' syntaxFlag is set for links in template parameters. Consume the
|
// 'equal' syntaxFlag is set for links in template parameters. Consume the
|
||||||
// '=' here.
|
// '=' here.
|
||||||
hs:( '=' inline)?
|
hs:( '=' inline?)?
|
||||||
{
|
{
|
||||||
//console.warn('link_text' + pp(h) + pp(hs));
|
//console.warn('link_text' + pp(h) + pp(hs));
|
||||||
stops.dec('linkdesc');
|
stops.dec('linkdesc');
|
||||||
|
@ -1976,7 +1976,6 @@ spaceless_preprocessor_text
|
||||||
|
|
||||||
wikilink_preprocessor_text
|
wikilink_preprocessor_text
|
||||||
= r:( t:[^<~[{\n\r\t|!\]}{ &=]+ { return t.join(''); }
|
= r:( t:[^<~[{\n\r\t|!\]}{ &=]+ { return t.join(''); }
|
||||||
/// urlencoded_char
|
|
||||||
/ !inline_breaks ( directive / !"]]" text_char )
|
/ !inline_breaks ( directive / !"]]" text_char )
|
||||||
)+ {
|
)+ {
|
||||||
return flatten_stringlist ( r );
|
return flatten_stringlist ( r );
|
||||||
|
|
Loading…
Reference in a new issue