Skip to content

Commit

Permalink
Change default OutputResource file name sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 30, 2024
1 parent d17fea1 commit e603022
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class FileResourceExporter(private val location: File) : OutputResourceVisitor<F
* with symbols removed and spaces replaced with dashes.
*/
private val OutputResource.fileName: String
get() =
name.replace("\\s+".toRegex(), "-")
.sanitizeFileName(replacement = "")
get() = name.sanitizeFileName(replacement = "-")

/**
* File extension relative to the [ArtifactType] of this resource.
Expand Down

0 comments on commit e603022

Please sign in to comment.