Add slugify to the filename on assets exportation

Fixes https://github.com/penpot/penpot/issues/8017
This commit is contained in:
Andrey Antukh 2026-01-20 13:47:09 +01:00
parent e03ad25118
commit 33e650242c
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@
- Fix unhandled exception tokens creation dialog [Github #8110](https://github.com/penpot/penpot/issues/8110)
- Fix allow negative spread values on shadow token creation [Taiga #13167](https://tree.taiga.io/project/penpot/issue/13167)
- Fix spanish translations on import export token modal [Taiga #13171](https://tree.taiga.io/project/penpot/issue/13171)
- Remove whitespaces from asset export filename [Github #8133](https://github.com/penpot/penpot/pull/8133)
## 2.12.1

View File

@ -36,7 +36,7 @@
{:path path
:mtype (mime/get type)
:name name
:filename (str/concat name (mime/get-extension type))
:filename (str/concat (str/slug name) (mime/get-extension type))
:id task-id}))
(defn create-zip