Explorar el Código

trim spaces

master
Patrick Peng Sun hace 9 años
padre
commit
6735b28682
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      procSearchMember.go

+ 1
- 0
procSearchMember.go Ver fichero

func (m *procSearchMemberDef) serve(ss *openIDSessionData, in *InWechatMsg) (processed bool) { func (m *procSearchMemberDef) serve(ss *openIDSessionData, in *InWechatMsg) (processed bool) {
switch msg := in.body.(type) { switch msg := in.body.(type) {
case TextMsg: case TextMsg:
msg.Content = strings.TrimSpace(msg.Content)
if m.endingCommand(ss, msg.Content) { if m.endingCommand(ss, msg.Content) {
return return
} }

Cargando…
Cancelar
Guardar