web: codeql found an issue with one of my tests.

This commit is contained in:
Ken Sternberg 2024-01-02 16:14:23 -08:00
parent 408eebd5b3
commit 95ec1a6bb2

View file

@ -26,7 +26,8 @@ Thyme, Tomatillo, Tomato, Turnip, Waterchestnut, Watercress, Watermelon, Yams
const keyToPair = (key: string): DualSelectPair => [slug(key), key]; const keyToPair = (key: string): DualSelectPair => [slug(key), key];
const goodForYou: DualSelectPair[] = goodForYouRaw const goodForYou: DualSelectPair[] = goodForYouRaw
.replace("\n", " ") .split("\n")
.join(" ")
.split(",") .split(",")
.map((a: string) => a.trim()) .map((a: string) => a.trim())
.map(keyToPair); .map(keyToPair);