forked from erikrose/mediawiki-parser
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Here is my testing code:
templates = {}
from mediawiki_parser.preprocessor import make_parser
preprocessor = make_parser(templates)
output = preprocessor.parse('')
The expected behavior is for the code to run without exceptions because an empty string is a valid media wiki page.
Instead the preprocessor.parse('') call fails with:
Match failure for pattern
wikitext:(not_styled_text / styled_text / allowed_text / EOL)+
in source text at location
index #0 line 1 character 1
^
Cannot match at least 1 time(s) pattern <?>:not_styled_text / styled_text / allowed_text / EOL.
(wrapped pattern error below)
... (and lots more)
The test fails even against the latest commit from master ( d7fa6ff )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels