Software /
code /
prosody
Comparison
util/sasl.lua @ 458:ac17926c3282
Added a FIXME
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 05:57:57 +0500 |
parent | 457:f4701f69f459 |
child | 475:fe861de7a4fc |
comparison
equal
deleted
inserted
replaced
457:f4701f69f459 | 458:ac17926c3282 |
---|---|
64 return data | 64 return data |
65 end | 65 end |
66 | 66 |
67 local function parse(data) | 67 local function parse(data) |
68 message = {} | 68 message = {} |
69 for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do | 69 for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder |
70 message[k] = v | 70 message[k] = v |
71 end | 71 end |
72 return message | 72 return message |
73 end | 73 end |
74 | 74 |