Skip to content

Commit 2ea003b

Browse files
committed
fix: Use _ as separator for multiple countries
1 parent c12746d commit 2ea003b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/getCountries.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ const getCountries = async (spinner, table, countries) => {
1818
}
1919
};
2020

21-
const parseCountries = (input, separator = "-") => {
21+
const parseCountries = (input, separator = "_") => {
2222
if (typeof input !== "string" || !input.includes(separator)) return false;
2323

24-
let countries = input.split("-").filter(country => country.length > 0);
24+
const countries = input
25+
.split(separator)
26+
.filter(country => country.length > 0);
2527

2628
return countries.length ? countries : false;
2729
};

0 commit comments

Comments
 (0)