You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaWiki parses this as a plain text, but mwparserfromhell gives an invalid URL (http://) plus plain text (>hostname</phpMyAdmin/):
In [1]: importmwparserfromhellIn [2]: wikicode=mwparserfromhell.parse("http://>hostname</phpMyAdmin/")
In [3]: wikicode.nodesOut[3]: ['http://', '>hostname</phpMyAdmin/']
In [4]: wikicode.filter_external_links()
Out[4]: ['http://']
In [5]: wikicode.filter_text(recursive=False)
Out[5]: ['>hostname</phpMyAdmin/']
I guess the parser should check if there is at least one valid character after http://...
The text was updated successfully, but these errors were encountered:
Consider this wikicode:
MediaWiki parses this as a plain text, but mwparserfromhell gives an invalid URL (
http://
) plus plain text (>hostname</phpMyAdmin/
):I guess the parser should check if there is at least one valid character after
http://
...The text was updated successfully, but these errors were encountered: