From 3ee0c1afcffade429a837dea9d5d2d7bd1163af7 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 6 Sep 2013 12:11:33 +0000 Subject: [PATCH] --bug regex --- r3-netstatus/sockettoevent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r3-netstatus/sockettoevent.go b/r3-netstatus/sockettoevent.go index e131973..e1f3379 100644 --- a/r3-netstatus/sockettoevent.go +++ b/r3-netstatus/sockettoevent.go @@ -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+)") -- 1.7.10.4