to lowerrr
This commit is contained in:
@@ -20,7 +20,7 @@ const httpTrigger: AzureFunction = async function (context: Context, req: HttpRe
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const regex = data.match(/^```([a-zA-Z]*)$/m)
|
const regex = data.match(/^```([a-zA-Z]*)$/m)
|
||||||
const lang = regex[1]
|
const lang = regex[1]?.toLowerCase()
|
||||||
if (!lang) {
|
if (!lang) {
|
||||||
context.res = {
|
context.res = {
|
||||||
status: 200,
|
status: 200,
|
||||||
|
|||||||
Reference in New Issue
Block a user