diff --git a/backend/src/middleware/notifications/mentions.js b/backend/src/middleware/notifications/mentions.js index 7071c9313..137c23f1c 100644 --- a/backend/src/middleware/notifications/mentions.js +++ b/backend/src/middleware/notifications/mentions.js @@ -1,6 +1,6 @@ const MENTION_REGEX = /\s@([\w_-]+)/g -export function extractSlugs(content) { +export function extractSlugs (content) { let slugs = [] let match while ((match = MENTION_REGEX.exec(content)) != null) { diff --git a/backend/src/middleware/notifications/mentions.spec.js b/backend/src/middleware/notifications/mentions.spec.js index 0c70aae1c..f12df7f07 100644 --- a/backend/src/middleware/notifications/mentions.spec.js +++ b/backend/src/middleware/notifications/mentions.spec.js @@ -24,7 +24,7 @@ describe('extract', () => { }) it('ignores email addresses', () => { - const content = 'Hello somebody@example.org' - expect(extractSlugs(content)).toEqual([]) + const content = 'Hello somebody@example.org' + expect(extractSlugs(content)).toEqual([]) }) })