#1
|
|||
|
|||
Incorrect Container Naming
I've noticed over the past few days, if a file is named something.part1.rar, something.part2.rar, etc. the container doesn't get named properly.
For example if you have: "This.Is.A.Test.part1.rar" the container will be named "This" instead of "This.Is.A.Test" Not sure if this had been reported already or not, but thought I'd throw it out there just in case. Last edited by Jiaz; 18.10.2009 at 04:04. |
#2
|
|||
|
|||
Sorry I was wrong, it's not because of part1.rar stuff.
pat10, which is "(.*)\\.[_a-z]{3}(\\.|$)" It's grabbing any 3 letter's in the name beginning with and ending in . and calling it the end. So This.and.that.rar would detect the .and. and call the package This I don't know much about FFSJ but a quick search makes it look like extensions are like .__a .__b, etc. So I'm not sure why it checks for the trailing period, so maybe it should be "(.*)\\.[_a-z]{3}$" instead? Though another potential problem if that were changed could be a file free.hat.rar, it would first strip the .rar at pattern 3, then strip .hat at pattern 10. So calling pattern 10 before pattern 3 may fix that. I didn't test most of this, just theory. I don't have a commit account anyway so I figured this was enough to explain it to someone that does. |
#3
|
||||
|
||||
can you pm me some example links?
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
these are from sourcecode;)
__________________
JD-Dev & Server-Admin |
#6
|
||||
|
||||
please give me some example links, because your example from above works for me.
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Alright PM'd you some specific ones that gave me issues.
|
#8
|
||||
|
||||
i changed regex a little and now your links work fine, please verify
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Looks good, requiring the initial underscore should significantly decrease the chances of false positives, especially in my case. Thanks!
|
Thread Tools | |
Display Modes | |
|
|