Sign in
vanadium
/
third_party
/
f60d925cb5f85022eceaa7e36ed310f2189dbd32
/
.
/
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, " "))
}