From 5f50c5ea938161fe78e48dcd5fb0d300837c2217 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Thu, 17 Mar 2022 23:23:42 -0400 Subject: [PATCH] to lowerrr --- HttpTrigger/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpTrigger/index.ts b/HttpTrigger/index.ts index 48b1c47..6263b0c 100644 --- a/HttpTrigger/index.ts +++ b/HttpTrigger/index.ts @@ -20,7 +20,7 @@ const httpTrigger: AzureFunction = async function (context: Context, req: HttpRe return } const regex = data.match(/^```([a-zA-Z]*)$/m) - const lang = regex[1] + const lang = regex[1]?.toLowerCase() if (!lang) { context.res = { status: 200,