extensionPattern in FilenameParser is incorrect
-----------------------------------------------

                 Key: MRM-713
                 URL: http://jira.codehaus.org/browse/MRM-713
             Project: Archiva
          Issue Type: Bug
    Affects Versions: 1.0.2
            Reporter: james ahlborn
            Priority: Minor


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());
  }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to