1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix lint errors and remove unused dependencies

This commit is contained in:
Baptiste Augrain
2018-12-16 19:45:18 +01:00
parent b99980fda1
commit 256653677e
2 changed files with 4 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
import diacritics from 'diacritics-map'
function replaceDiacritics(str) {
return str.replace(/[À-ž]/g, function(ch) {
return diacritics[ch] || ch;
});
function replaceDiacritics (str) {
return str.replace(/[À-ž]/g, function (ch) {
return diacritics[ch] || ch
})
}
module.exports = function slugify (title) {