diff --git a/packages/common/src/normalize-string.spec.ts b/packages/common/src/normalize-string.spec.ts index 27bfca888d..b0324c8ac1 100644 --- a/packages/common/src/normalize-string.spec.ts +++ b/packages/common/src/normalize-string.spec.ts @@ -25,7 +25,7 @@ describe('normalizeString()', () => { it('strips non-alphanumeric characters', () => { expect(normalizeString('hi!!!')).toBe('hi'); expect(normalizeString('who? me?')).toBe('who me'); - expect(normalizeString('!"£$%^&*()+[]{};:@#~?/,|\\><`¬\'=')).toBe(''); + expect(normalizeString('!"£$%^&*()+[]{};:@#~?/,|\\><`¬\'=©®™')).toBe(''); }); it('allows a subset of non-alphanumeric characters to pass through', () => { diff --git a/packages/common/src/normalize-string.ts b/packages/common/src/normalize-string.ts index 48aa45c676..b3fc74c814 100644 --- a/packages/common/src/normalize-string.ts +++ b/packages/common/src/normalize-string.ts @@ -8,6 +8,6 @@ export function normalizeString(input: string, spaceReplacer = ' '): string { .normalize('NFD') .replace(/[\u0300-\u036f]/g, '') .toLowerCase() - .replace(/[!"£$%^&*()+[\]{};:@#~?\\/,|><`¬'=‘’]/g, '') + .replace(/[!"£$%^&*()+[\]{};:@#~?\\/,|><`¬'=‘’©®™]/g, '') .replace(/\s+/g, spaceReplacer); }