Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.0.2
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
in FileNameParser.java:
- extensionPattern is bogus. I assume that the '.' chars are supposed to be literal chars, should be:
"([.]tar[.]gz$)|([.]tar[.]bz2$)|([.][a-z0-9]*$)"
TestCase:
public void testNoExtension()
{ FilenameParser parser = new FilenameParser("foo_bar"); assertNull(parser.getExtension()); }
applied, thanks!