From: Bernhard Tittelbach Date: Fri, 6 Sep 2013 12:11:33 +0000 (+0000) Subject: --bug regex X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=3ee0c1afcffade429a837dea9d5d2d7bd1163af7;p=svn42.git --bug regex --- 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+)")