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:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user