diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-06-30 14:41:28 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-06-30 14:41:28 +0000 |
commit | 0cd63f061a274c35b38917f668fd9e833a6d2274 (patch) | |
tree | 913eff2da3dc2252f9a424843a433b5840144f13 /lib/format.lua | |
parent | de09d6f5d4b63cdd841511e49f943db2e88a9503 (diff) | |
download | acf-core-0cd63f061a274c35b38917f668fd9e833a6d2274.tar.bz2 acf-core-0cd63f061a274c35b38917f668fd9e833a6d2274.tar.xz |
Revert mistaken bug fix to format.string_to_table and made corresponding change to processinfo. Bumped version to 0.6.1.v0.6.1
(reverted part of 9b934599d84f0b3dd32cda657790dc2c34bd95d8)
Diffstat (limited to 'lib/format.lua')
-rw-r--r-- | lib/format.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/format.lua b/lib/format.lua index 9492eca..63b8fec 100644 --- a/lib/format.lua +++ b/lib/format.lua @@ -175,14 +175,10 @@ function string_to_table ( text, delimiter) while 1 do local first, last = string.find(text, delimiter, pos) if first then -- found? - if first > pos then - table.insert(list, string.sub(text, pos, first-1)) - end + table.insert(list, string.sub(text, pos, first-1)) pos = last+1 else - if pos < string.len(text) then - table.insert(list, string.sub(text, pos)) - end + table.insert(list, string.sub(text, pos)) break end end |