Skip to content

Commit

Permalink
Merge pull request #20 from thomiceli/fix/trim-filenames
Browse files Browse the repository at this point in the history
Trim filenames
  • Loading branch information
thomiceli committed Apr 29, 2023
2 parents 64d0818 + 2b3043a commit c45b418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/web/gist.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func processCreate(ctx echo.Context) error {
}

dto.Files = append(dto.Files, models.FileDTO{
Filename: name,
Filename: strings.Trim(name, " "),
Content: escapedValue,
})
}
Expand Down

0 comments on commit c45b418

Please sign in to comment.