From ac947421c09ae1bb3a7238515524c812cc9c1fd6 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Tue, 7 Feb 2023 10:52:34 -0800 Subject: [PATCH] Allow URL list to have URLs containing commas (#572) --- frontend/src/pages/org/crawl-config-editor.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/pages/org/crawl-config-editor.ts b/frontend/src/pages/org/crawl-config-editor.ts index 2d9fc728..04f20aa6 100644 --- a/frontend/src/pages/org/crawl-config-editor.ts +++ b/frontend/src/pages/org/crawl-config-editor.ts @@ -187,8 +187,7 @@ function validURL(url: string) { const trimArray = flow(uniq, compact); const urlListToArray = flow( - (str: string) => - str.length ? str.trim().replace(/,/g, " ").split(/\s+/g) : [], + (str: string) => (str.length ? str.trim().split(/\s+/g) : []), trimArray ); const DEFAULT_BEHAVIOR_TIMEOUT_MINUTES = 5;