Skip to content

Commit

Permalink
fix: allow accent chars in topics (#1007)
Browse files Browse the repository at this point in the history
Fixes #1003
  • Loading branch information
robertsLando committed Apr 7, 2021
1 parent 6a040fe commit 79cf699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function sanitizeTopic (str, sanitizeSlash) {
// replace spaces with '_'
str = str.replace(/\s/g, '_')
// remove special chars
return str.replace(/[^A-Za-z0-9-_/]/g, '')
return str.replace(/[^A-Za-z0-9-_À-ÖØ-öø-ÿ/]/g, '')
}

/**
Expand Down

0 comments on commit 79cf699

Please sign in to comment.