web: codeql found an issue with one of my tests.
This commit is contained in:
parent
408eebd5b3
commit
95ec1a6bb2
|
@ -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);
|
||||
|
|
Reference in a new issue