--bug regex
authorBernhard Tittelbach <xro@realraum.at>
Fri, 6 Sep 2013 12:11:33 +0000 (12:11 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Fri, 6 Sep 2013 12:11:33 +0000 (12:11 +0000)
r3-netstatus/sockettoevent.go

index e131973..e1f3379 100644 (file)
@@ -13,7 +13,7 @@ import (
 var (
        re_presence_    *regexp.Regexp     = regexp.MustCompile("Presence: (yes|no)(?:, (opened|closed), (.+))?")
        re_status_      *regexp.Regexp     = regexp.MustCompile("Status: (closed|opened), (opening|waiting|closing|idle), (ajar|shut).*")
-       re_command_     *regexp.Regexp     = regexp.MustCompile("(open|close|toggle)(?:/s+(Card|Phone|SSH|ssh))?(?:/s+(.+))?")
+       re_command_     *regexp.Regexp     = regexp.MustCompile("(open|close|toggle|reset)(?: +(Card|Phone|SSH|ssh))?(?: +(.+))?")
        re_button_      *regexp.Regexp     = regexp.MustCompile("PanicButton|button\\d?")
        re_temp_        *regexp.Regexp     = regexp.MustCompile("temp0: (\\d+\\.\\d+)")
        re_photo_       *regexp.Regexp     = regexp.MustCompile("photo0: (\\d+)")