Fix regex.

This commit is contained in:
CronyAkatsuki 2024-03-03 11:18:28 +01:00
parent b87a56623b
commit 821c0c91c8

View File

@ -128,7 +128,7 @@ func Files(c echo.Context) error {
ImageMatch := regexp.MustCompile("^image/.*")
VideoMatch := regexp.MustCompile("^video/.*")
JsonMatch := regexp.MustCompile("application/json")
TextMatch := regexp.MustCompile("^text/.*|application/octet-stream")
TextMatch := regexp.MustCompile("^text/.*")
for _, f := range filelist {
filePath := "files/" + f.Name()