https://bugzilla.wikimedia.org/show_bug.cgi?id=53346
Web browser: ---
Bug ID: 53346
Summary: mw.message.parse() throws error for messages with
pattern [[$1|abc]]
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Original bug title:
mw.message.parse() throws error for messages with pattern [[$1|abc]]
----
How to reproduce:
mw.loader.using('mediawiki.jqueryMsg', function() {
mw.messages.set({ 'abc': 'x[[$1|abc]]' });
var html = mw.message('abc', 'a wikipage').parse();
// html is now: abc: Parse error at position 1 in input: x[[$1|abc]]
});
----
Expected result:
html === 'x<a href="/wiki/a_wikipage" title="a wikipage">abc</a>'
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l