to lowerrr

This commit is contained in:
Tommy Parnell
2022-03-17 23:23:42 -04:00
parent aeb26aaccb
commit 5f50c5ea93

View File

@@ -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,