From 7b02f9584246caf458e1e02b851b4bca052d18f2 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 23 Feb 2016 05:07:33 +0000 Subject: Fix process_put pattern matching to allow for spaces in values --- config/process_put.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/process_put.lua b/config/process_put.lua index e203cf0..0194e46 100644 --- a/config/process_put.lua +++ b/config/process_put.lua @@ -27,10 +27,10 @@ end local params = functions.get_device_params(device_id) function process_polycom() - local before, xml, after = string.match(data, "(.*.*)") + local before, xml, after = string.match(data, "(.*.*)") if not xml then return end local attrs = {} - for str in string.gmatch(xml, "%S+") do + for str in string.gmatch(xml, "%S+=\"[^\"]*\"") do local n,v = string.match(str, "([^=]+)=\"(.*)\"") if not attrs[n] then attrs[n] = v -- cgit v1.2.3