diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-08-21 21:58:50 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-08-21 21:58:50 +0200 |
commit | 01f52aa2481c314511f43560757c5bd63ca05ac2 (patch) | |
tree | 802376c7873d449bc1ccc0230093e233298a6519 /setup.py | |
parent | a9a7c6c77f3b6078e317d455b696ce76272b88cb (diff) | |
download | wikimini-01f52aa2481c314511f43560757c5bd63ca05ac2.tar.gz wikimini-01f52aa2481c314511f43560757c5bd63ca05ac2.tar.bz2 wikimini-01f52aa2481c314511f43560757c5bd63ca05ac2.zip |
generalize File: stripping
This has two reasons:
First, there's more than just File: we might want to strip. Category:
was another example, but there's more - User:, Help:, ... Using \w+
should catch them all.
Secondly, and maybe more importantly, different languages have their
namespaces localized as well. For example, in German, we have Datei:
instead of File:, or Kategorie: instead of Category:. This fix makes the
stripping work properly there as well.
One future change that might have to be done is to expand the regex to
catch namespaces with a space/underscore in it.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions