Skip to content

Commit

Permalink
fix: missing modified in validate regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jan 1, 2024
1 parent 478470f commit c450dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/handles/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package handles

import (
"fmt"
"regexp"
"strconv"
"strings"

"github.com/alist-org/alist/v3/internal/model"
"github.com/alist-org/alist/v3/internal/op"
"github.com/alist-org/alist/v3/server/common"
"github.com/dlclark/regexp2"
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
)
Expand Down Expand Up @@ -71,7 +71,7 @@ func UpdateMeta(c *gin.Context) {
func validHide(hide string) (string, error) {
rs := strings.Split(hide, "\n")
for _, r := range rs {
_, err := regexp.Compile(r)
_, err := regexp2.Compile(r, regexp2.None)
if err != nil {
return r, err
}
Expand Down

0 comments on commit c450dce

Please sign in to comment.