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
1 changed files with 2 additions and 1 deletions

View File

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