« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/wiki-data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js
index f044b2a1..8fb62db0 100644
--- a/src/util/wiki-data.js
+++ b/src/util/wiki-data.js
@@ -109,7 +109,7 @@ export function normalizeName(s) {
     .trim();
 
   // Discard anything that isn't a letter, number, or space.
-  s = s.replace(/[^\p{Letter}\p{Number} ]/gu, '');
+  s = s.replace(/[^\p{Letter}\p{Number} ]/gu, '').trim();
 
   // Remove common English (only, for now) prefixes.
   s = s.replace(/^(?:an?|the) /i, '');