From f7a878f97d2ec7c313883f91518d65c32925c73f Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 May 2023 19:23:02 +0300 Subject: [PATCH] Update update.js --- scripts/db/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/db/update.js b/scripts/db/update.js index bcbd2e73..16488175 100644 --- a/scripts/db/update.js +++ b/scripts/db/update.js @@ -165,12 +165,12 @@ function parseIssue(issue) { Logo: 'logo' } - const matches = issue.body.match(/### ([^\r\n]+)[^\w\d]+([^\r\n]+)/g) + const matches = issue.body.match(/### ([^\r\n]+)\s+([^\r\n]+)/g) if (!matches) return { issue, channel: null } matches.forEach(item => { - const [, fieldLabel, value] = item.match(/### ([^\r\n]+)[^\w\d]+([^\r\n]+)/) + const [, fieldLabel, value] = item.match(/### ([^\r\n]+)\s+([^\r\n]+)/) const field = fields[fieldLabel] if (!field) return