quetzai / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

[PATCH] Fix MediaWiki reference parser issues #188

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The class org.wikimodel.wem.mediawiki.MediaWikiReferenceParser
has some issues, when parsing parameters (like width, format, etc.).

Samples:
 * [[Main Page|]] should be "Main Page" but was "Main Page|".
 * [[Image:foo.png|frame|20px]] should be "Image:foo.png" (and params) but was "foo.png". Thus not consistent.

This patch provides a fix and some JUnit tests to prove correctness.

Original issue reported on code.google.com by mki...@portolancs.com on 6 Aug 2010 at 3:21

GoogleCodeExporter commented 8 years ago
Update of the patch included some more JUNIT tests.

Original comment by mki...@portolancs.com on 10 Aug 2010 at 9:49

Attachments:

GoogleCodeExporter commented 8 years ago
Added one more Patch (same context) that additionally makes the 
ReferenceHandler case insensitive.

Original comment by mki...@portolancs.com on 10 Aug 2010 at 9:51

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by thomas.m...@gmail.com on 16 Aug 2010 at 8:54