chore: update filter

This commit is contained in:
Cory Dransfeldt 2024-04-23 16:08:17 -07:00
parent 23edf2d9d9
commit 6848749306
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -228,7 +228,8 @@ export default {
if (
normalizedString === 'ios' ||
normalizedString === 'macos' ||
normalizedString === 'rss'
normalizedString === 'rss' ||
normalizedString === 'ai'
) return `#${string}`
if (!string.includes(' ')) return `#${capitalizeFirstLetter(string)}`
return `#${string.split(' ').map(s => capitalizeFirstLetter(s)).join('')}`