quotes
This commit is contained in:
parent
33f32920ee
commit
247e01c20a
7
main.go
7
main.go
|
@ -187,9 +187,10 @@ func GetCommand(body, from, dir string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Strip(s, s2 *string) {
|
func Strip(s, s2 *string) {
|
||||||
r, _ := regexp.Compile("(`|\\$|\"|'|\\.\\.)") //strip
|
strip, _ := regexp.Compile("(`|\\$|\\.\\.)")
|
||||||
*s = r.ReplaceAllString(*s, "")
|
q, _ := regexp.Compile("(\"|')")
|
||||||
*s2 = r.ReplaceAllString(*s2, "")
|
*s = q.ReplaceAllString(strip.ReplaceAllString(*s, ""),"“")
|
||||||
|
*s2 = q.ReplaceAllString(strip.ReplaceAllString(*s2, ""),"“")
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetNick(s string) string {
|
func GetNick(s string) string {
|
||||||
|
|
Loading…
Reference in New Issue