diff options
author | Iordan Iordanov <iiordanov@gmail.com> | 2011-11-05 16:50:14 +0000 |
---|---|---|
committer | Iordan Iordanov <iiordanov@gmail.com> | 2011-11-05 16:50:14 +0000 |
commit | 773de62fd34de4e3dbce3f5148425dd4a84599bc (patch) | |
tree | 07f64ea3759dd1a902ecfa56ffd00cd57f2abf48 /applications/luci-pbx/luasrc/model/cbi/pbx.lua | |
parent | 0abb1420e7e03f17ac7d60d6eb7e7aab905da3eb (diff) |
1) Replaced trim with luci.util.trim in pbx-calls.lua
2) Slight code cleanup in pbx.lua
Diffstat (limited to 'applications/luci-pbx/luasrc/model/cbi/pbx.lua')
-rw-r--r-- | applications/luci-pbx/luasrc/model/cbi/pbx.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/applications/luci-pbx/luasrc/model/cbi/pbx.lua b/applications/luci-pbx/luasrc/model/cbi/pbx.lua index 8a45740e25..f3a23b6a42 100644 --- a/applications/luci-pbx/luasrc/model/cbi/pbx.lua +++ b/applications/luci-pbx/luasrc/model/cbi/pbx.lua @@ -49,13 +49,12 @@ function format_indices(string, indices) end -- Split input into separate lines. - lines = {} lines = mysplit(string, "\n") -- Split lines into separate words. splitlines = {} for lpos,line in ipairs(lines) do - splitlines[lpos] = mysplit(line) + splitlines[lpos] = mysplit(line, " ") end -- For each split line, if the word at all indices specified |