Opened 8 years ago

Closed 8 years ago

# File extension check does not work / option switching extension checking off

### Description

Hi,

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
>>> 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.

Bye

### comment:1 Changed 8 years ago by Radek Bartoň

Resolution: → fixed new → closed

Silly me. Check out r5752. You can disable check with ext = all now.

### Modify Ticket

Change Properties
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted.