From b355a244ab8fce0943293cea6d79cd6e4285d255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 9 Apr 2019 20:51:17 +0200 Subject: [PATCH] Fix lint --- backend/src/middleware/notifications/mentions.js | 2 +- backend/src/middleware/notifications/mentions.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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([]) }) })