Software /
code /
prosody
Comparison
util/sasl.lua @ 475:fe861de7a4fc
Forced merge.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sat, 29 Nov 2008 11:24:59 +0100 |
parent | 472:ee45599c0b5d |
parent | 458:ac17926c3282 |
child | 476:4744735a0a5e |
comparison
equal
deleted
inserted
replaced
474:666e22848890 | 475:fe861de7a4fc |
---|---|
65 return data | 65 return data |
66 end | 66 end |
67 | 67 |
68 local function parse(data) | 68 local function parse(data) |
69 message = {} | 69 message = {} |
70 for k, v in gmatch(data, [[([%w%-]+)="?([%w%-%/%.%+=]+)"?,?]]) do | 70 for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder |
71 message[k] = v | 71 message[k] = v |
72 end | 72 end |
73 return message | 73 return message |
74 end | 74 end |
75 | 75 |