Skip to content

Commit

Permalink
Allow unicode letters in slugs. Fix #552
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed Jul 10, 2024
1 parent a4e69ba commit b02d901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/reducers/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit b02d901

Please sign in to comment.