add support for selecting certain engines in API
Some checks are pending
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Waiting to run
mozhi pipeline / Build and publish artifacts (push) Waiting to run

This commit is contained in:
2024-04-03 17:03:14 +05:30
parent 10f76a7387
commit 721bd07771
4 changed files with 72 additions and 30 deletions

View File

@@ -7,8 +7,8 @@ import (
"regexp"
)
var nonAlphanumericRegex = regexp.MustCompile(`[^a-zA-Z]+`)
var nonAlphaRegex = regexp.MustCompile(`[^a-zA-Z0-9]+`)
var nonAlphanumericRegex = regexp.MustCompile(`[^a-zA-Z,]+`)
var nonAlphaRegex = regexp.MustCompile(`[^a-zA-Z0-9,]+`)
func GetQueryOrFormValue(c *fiber.Ctx, key string) string {
if c.Method() == "POST" {