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

FilenameUtils.wildcardMatch gives incorrect results

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: Filters
    • Labels:
      None
    • Environment:

      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: