Skip to content

Commit

Permalink
fix static extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Jan 26, 2025
1 parent ef5d4a9 commit 5987540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extractor/static/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/traP-jp/h24w-17/normalizer"
)

var sqlPattern = regexp.MustCompile(`(?i)\b(SELECT|INSERT|UPDATE|DELETE)\b`)
var sqlPattern = regexp.MustCompile(`^(SELECT|INSERT|UPDATE|DELETE)\b`)
var replacePattern = regexp.MustCompile(`\s+`)

type ExtractedQuery struct {
Expand Down

0 comments on commit 5987540

Please sign in to comment.