We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1826c19 commit bd030cfCopy full SHA for bd030cf
src/common/config.ts
@@ -275,14 +275,10 @@ function commaSeparatedToArray<T extends string[]>(str: string | string[] | unde
275
}
276
277
if (str.length === 1) {
278
- if (str[0]?.indexOf(",") === -1) {
279
- return str.filter((e) => e.trim().length > 0) as T;
280
- } else {
281
- return str[0]
282
- ?.split(",")
283
- .map((e) => e.trim())
284
- .filter((e) => e.length > 0) as T;
285
- }
+ return str[0]
+ ?.split(",")
+ .map((e) => e.trim())
+ .filter((e) => e.length > 0) as T;
286
287
288
return str as T;
0 commit comments