Allow URL list to have URLs containing commas (#572)

This commit is contained in:
sua yoo 2023-02-07 10:52:34 -08:00 committed by GitHub
parent 56d331ab78
commit ac947421c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;