Skip to content

Commit

Permalink
trim indent
Browse files Browse the repository at this point in the history
  • Loading branch information
mazrean committed Nov 30, 2024
1 parent 1b9ffc5 commit 3e26cf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbdoc/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func extractSubQueries(_ *Context, sql string) []string {

func analyzeSQLWithoutSubQuery(ctx *Context, sqlValue string, pos token.Pos) []Query {
sqlValue = strings.TrimLeftFunc(sqlValue, unicode.IsSpace)
sqlValue = strings.TrimFunc(sqlValue, func(r rune) bool {
return r == '\n' || r == '\r'
})

var queries []Query
switch {
Expand Down

0 comments on commit 3e26cf5

Please sign in to comment.