File extension check does not work / option switching extension checking off
|Reported by:||Owned by:||Radek Bartoň|
I tried severy times today using this plugin, but always get the message about unknown file type. Filetype is setup correct, but the inside regular expression seems not working with python 2.4 or python 2.5,
And so I tried it on console (expression tooked from code):
Python 2.5.2 (r252:60911, Sep 30 2008, 15:42:03) [GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> reg = re.compile(r'^(.*)(?:[.](.*)$|$)') >>> result = reg.match('kdesvn-1.3.1.tar.bz2') >>> print result.group(2) None >>>
Other words: it doesn't work. It can not work. So I commented out localy the type check.
And this is the next: I'm sure it would make sense inserting an option switching this check complete of. On some sites only administrators may upload various files. So them need no restrictions about this and sometimes it is real bulky.