Closed rafalkrupinski closed 10 years ago
Can you explain exactly how this would manifest itself? Passing in 2 or more windows paths just does not seem like something that would ever happen.
Artifact.isArtifact() calls new Artifact() and returns true if no exception is thrown. isArtifact() called with multiple windows paths returns true
Dennis, would you please integrate this pull request or otherwise fix the problem when isArtifact() is called with windows paths?
Awesome, thanks for the patch Rafal
new Artifact() called with two or more absolute windows paths (C:\file1;C:\file2) is accepted because of colons separating drive and path. This change adds \ to negative matches.
Perhaps the regex checking for artifacts should consist of positive matches, e.g. [\w\d-] or [\p{L}\d-]