Allow URL list to have URLs containing commas (#572)
This commit is contained in:
parent
56d331ab78
commit
ac947421c0
@ -187,8 +187,7 @@ function validURL(url: string) {
|
|||||||
|
|
||||||
const trimArray = flow(uniq, compact);
|
const trimArray = flow(uniq, compact);
|
||||||
const urlListToArray = flow(
|
const urlListToArray = flow(
|
||||||
(str: string) =>
|
(str: string) => (str.length ? str.trim().split(/\s+/g) : []),
|
||||||
str.length ? str.trim().replace(/,/g, " ").split(/\s+/g) : [],
|
|
||||||
trimArray
|
trimArray
|
||||||
);
|
);
|
||||||
const DEFAULT_BEHAVIOR_TIMEOUT_MINUTES = 5;
|
const DEFAULT_BEHAVIOR_TIMEOUT_MINUTES = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user