Sign in
vanadium
/
third_party
/
6a0c4f473ff90b84bfb80f67adcb911ca3a4784b
/
.
/
go
/
src
/
github.com
/
DATA-DOG
/
go-sqlmock
/
util.go
blob: 070e8b42907898acb4035a4235c821e58f5ca99e [
file
] [
log
] [
blame
]
package sqlmock
import (
"regexp"
"strings"
)
var re *regexp.Regexp
func init() {
re = regexp.MustCompile("\\s+")
}
// strip out new lines and trim spaces
func stripQuery(q string) (s string) {
return strings.TrimSpace(re.ReplaceAllString(q, " "))
}