diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/wiki-data.js | 2 |
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, ''); |