mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix lint
This commit is contained in:
parent
0cd7b6cf7f
commit
ab14087a47
@ -3,13 +3,13 @@ export default async function uniqueSlug(string, isUnique) {
|
||||
const slug = slugify(string || 'anonymous', {
|
||||
lower: true,
|
||||
charmap: {
|
||||
'Ä' : 'ae',
|
||||
'ä' : 'ae',
|
||||
'Ö' : 'oe',
|
||||
'ö' : 'oe',
|
||||
'Ü' : 'ue',
|
||||
'ü' : 'ue',
|
||||
}
|
||||
Ä: 'ae',
|
||||
ä: 'ae',
|
||||
Ö: 'oe',
|
||||
ö: 'oe',
|
||||
Ü: 'ue',
|
||||
ü: 'ue',
|
||||
},
|
||||
})
|
||||
if (await isUnique(slug)) return slug
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user