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 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);
|
||||||
|
|
Reference in a new issue