pediapress / mwlib

mediawiki parser library
103 stars 35 forks source link

accept unconventional redirects #52

Closed murawaki closed 9 years ago

murawaki commented 9 years ago

I have modified nshandling.py to get unconventional redirects recognized as such. Now these redirects may contain whitespace-like characters at the beginning (e.g., "

REDIRECT [[Foo]]"), or whitespace before an optional colon (e.g., "#REDIRECT : [[Foo]]").

For more information, see: https://git.wikimedia.org/blob/mediawiki%2Fcore.git/ec02aba4c0e870f97c3ae8d237555c4b16f30750/includes%2Fcontent%2FWikitextContent.php#L188

ckepper commented 9 years ago

thanks for the patch :-)