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 ( d7fa6ffeb7daf1e5368feefcdd6fc4d37c18ab98 )
Here is my testing code:
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:The test fails even against the latest commit from master ( d7fa6ffeb7daf1e5368feefcdd6fc4d37c18ab98 )