Skip to content

Commit

Permalink
fix getFileNameFromPath
Browse files Browse the repository at this point in the history
  • Loading branch information
DMarinhoCodacy committed Jun 3, 2024
1 parent 460d9e3 commit ac67cae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object FileNameMatcher {
}

def getFilenameFromPath(filename: String): String = {
Try(Paths.get(filename).getFileName.toString).getOrElse(filename)
Try(Paths.get(filename).getFileName.toString.toLowerCase).getOrElse(filename.toLowerCase)
}

private def haveSameName(file: String, covFile: String): Boolean =
Expand Down

0 comments on commit ac67cae

Please sign in to comment.