精简环境变量配置
This commit is contained in:
@@ -96,18 +96,3 @@ export function parseJsonArray<T = unknown>(rawValue: unknown): T[] | null {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export function parseCommaSeparatedStrings(rawValue: unknown): string[] | null {
|
||||
const normalized = String(rawValue || "").trim();
|
||||
|
||||
if (!normalized) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const items = normalized
|
||||
.split(",")
|
||||
.map((item) => item.trim())
|
||||
.filter((item) => item.length > 0);
|
||||
|
||||
return items.length > 0 ? items : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user