Remove @b1rdmania from OG share copy, strip mid/midi from song titles

- OG description no longer includes "by @b1rdmania" (only X share has it)
- Song titles now strip standalone "mid" and "midi" words

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
b1rdmania
2025-12-29 14:53:28 +00:00
parent 2df84d9679
commit e485335a26
3 changed files with 10 additions and 2 deletions
+4
View File
@@ -644,6 +644,10 @@ class MotifApp {
.replace(/[_]+/g, ' ')
.replace(/[.]+/g, ' ')
.replace(/\s+/g, ' ')
.trim()
// Strip standalone "mid" or "midi" words (case insensitive)
.replace(/\b(midi?)\b/gi, '')
.replace(/\s+/g, ' ')
.trim();
return this.titleCase(cleaned || 'Unknown');
}
+4
View File
@@ -53,6 +53,10 @@ function cleanLooseTitle(raw: string): string {
.replace(/[_]+/g, ' ')
.replace(/[.]+/g, ' ')
.replace(/\s+/g, ' ')
.trim()
// Strip standalone "mid" or "midi" words
.replace(/\b(midi?)\b/gi, '')
.replace(/\s+/g, ' ')
.trim();
}