From 888a5184c7459005142ca75f79dd388921ae3e9c Mon Sep 17 00:00:00 2001 From: Gnedov Pavel Date: Sat, 24 Jun 2023 10:40:57 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D0=BF=D0=BE=D0=BB=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D1=87=D0=B8=D1=81=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D1=83=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=D0=B5=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=B4=D0=B5=D0=BB=D0=B8=D1=82=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/kanban-board/kanban-boards.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/kanban-board/kanban-boards.tsx b/frontend/src/kanban-board/kanban-boards.tsx index f44ccb4..a4a9634 100644 --- a/frontend/src/kanban-board/kanban-boards.tsx +++ b/frontend/src/kanban-board/kanban-boards.tsx @@ -40,9 +40,9 @@ export const KanbanBoards = observer((props: Props) => { const onIssuesRefreshClick = (e: React.MouseEvent) => { if (e.target !== e.currentTarget) return; e.stopPropagation(); - const rawInput = prompt("Force issues refresh (delimiters - space, comma, semicolon or tab)", ""); + const rawInput = prompt("Force issues refresh (delimiters - space, comma, semicolon, tab or new line)", ""); if (!rawInput) return; - const list = rawInput.split(" ,;\t").map(item => Number(item)).filter(item => Number.isFinite(item)); + const list = rawInput.split(/[ ,;\t\n\r]/).map(item => Number(item)).filter(item => (Number.isFinite(item) && item > 0)); if (!list) return; axios.post(`/redmine-event-emitter/append-issues`, list); };