mirror of
https://github.com/penpot/penpot.git
synced 2026-05-09 01:58:46 +00:00
🐛 Fix hyphens stripped from export filenames (#8944)
Replace str/slug with a targeted regex that only removes filesystem-unsafe characters when generating export filenames. The slug function strips all non-word characters including hyphens, causing names like "my-board" to become "myboard" on export. Fixes #8901 Signed-off-by: jamesrayammons <jamesrayammons@outlook.com> Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
68595e90eb
commit
b211594ce8
@ -51,6 +51,7 @@
|
||||
- Fix selected color tokens [Taiga #13930](https://tree.taiga.io/project/penpot/issue/13930)
|
||||
- Fix dashboard Recent/Deleted titles overlapped by scrolling content (by @rockchris99) [Github #8577](https://github.com/penpot/penpot/issues/8577)
|
||||
- Display resolved values of inactive tokens [Taiga #13628](https://tree.taiga.io/project/penpot/issue/13628)
|
||||
- Fix hyphens stripped from export filenames (by @jamesrayammons) [Github #8901](https://github.com/penpot/penpot/issues/8901)
|
||||
- Fix app crash when selecting shapes with one hidden [Taiga #13959](https://tree.taiga.io/project/penpot/issue/13959)
|
||||
- Fix opacity mixed value [Taiga #13960](https://tree.taiga.io/project/penpot/issue/13960)
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
{:path path
|
||||
:mtype (mime/get type)
|
||||
:name name
|
||||
:filename (str/concat (str/slug name) (mime/get-extension type))
|
||||
:filename (str/concat (str/replace name #"[\\/:*?\"<>|]" "_") (mime/get-extension type))
|
||||
:id task-id}))
|
||||
|
||||
(defn create-zip
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user