Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-246

FilenameUtils.wildcardMatch gives incorrect results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 2.0
    • Filters
    • None
    • any

    Description

      This wildcard pattern "*?" does not match correctly. The command:

      System.out.println(FilenameUtils.wildcardMatch("aaa", "*?"));

      prints out "false", even though it matches. The wildcard mask is a bit unusal, but not incorrect. It should match any input with at least one character.

      Attachments

        1. IO-246-wildcardMatch.patch
          2 kB
          Niall Pemberton

        Activity

          People

            niallp Niall Pemberton
            vva vva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: