From b02d901068515f607f19b6e6c758a983cee77dd6 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Tue, 9 Jul 2024 03:42:29 +0200 Subject: [PATCH] Allow unicode letters in slugs. Fix #552 --- src/js/reducers/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/reducers/config.js b/src/js/reducers/config.js index dfa7d4a3..18a03ece 100644 --- a/src/js/reducers/config.js +++ b/src/js/reducers/config.js @@ -58,7 +58,7 @@ const determineDefaultLibraryKey = action => { const slugify = name => { let slug = name.trim(); slug = slug.toLowerCase(); - slug = slug.replace( /[^a-z0-9 ._-]/g , ''); + slug = slug.replace(/[^\p{L} ._-]/gu, ''); slug = slug.replace(/\s/g, '_'); return slug; };