Skip to content

Commit

Permalink
Fix fail to download license file because license name contains inval…
Browse files Browse the repository at this point in the history
…id characters
  • Loading branch information
onyourwings committed Apr 17, 2024
1 parent fde71e4 commit a7edc0b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1233,8 +1233,8 @@ private FileNameEntry getLicenseFileName(
licenseFileName = licenseFileName.replaceAll("\\s+", " ");
}

// lower case and (back)slash removal
licenseFileName = licenseFileName.toLowerCase(Locale.US).replaceAll("[\\\\/]+", "_");
// lower case and invalid filename characters removal
licenseFileName = licenseFileName.toLowerCase(Locale.US).replaceAll("[\\\\/:*?\"<>|]+", "_");

licenseFileName = sanitize(licenseFileName);

Expand Down

0 comments on commit a7edc0b

Please sign in to comment.