14 lines
222 B
Go
14 lines
222 B
Go
|
package sqlmock
|
||
|
|
||
|
import (
|
||
|
"regexp"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
var re = regexp.MustCompile("\\s+")
|
||
|
|
||
|
// strip out new lines and trim spaces
|
||
|
func stripQuery(q string) (s string) {
|
||
|
return strings.TrimSpace(re.ReplaceAllString(q, " "))
|
||
|
}
|