diff --git a/src/lib/default-transformer.js b/src/lib/default-transformer.js index e5174b5..e9c663d 100644 --- a/src/lib/default-transformer.js +++ b/src/lib/default-transformer.js @@ -6,7 +6,7 @@ const userLinker = /(^|\s)@([\w\-.]+\b)/g; export default function (input, { project, baseURI }) { let owner; let name; - const restrictedUserNames = ['admins', 'moderators', 'researchers', 'scientists', 'team']; + const restrictedUserNames = ['admins', 'moderators', 'researchers', 'scientists', 'team', 'support']; const prefix = baseURI || ''; if (project) { diff --git a/test/default-transformer-test.js b/test/default-transformer-test.js index acdd851..d018cd8 100644 --- a/test/default-transformer-test.js +++ b/test/default-transformer-test.js @@ -71,8 +71,8 @@ describe('default-transformer', () => { }); it('it ignores restricted usernames', () => { - const userLink = replaceSymbols('@admins @moderators @team @researchers @scientists', { project, baseURI }); - expect(userLink).to.equal('@admins @moderators @team @researchers @scientists'); + const userLink = replaceSymbols('@admins @moderators @team @researchers @scientists @support', { project, baseURI }); + expect(userLink).to.equal('@admins @moderators @team @researchers @scientists @support'); }); it('replaces @ownerslug/project-slug^S mentions with links', () => {