strip moved to stead.strip

This commit is contained in:
p.kosyh 2011-07-25 19:47:05 +00:00
parent 56253d8fd1
commit d583c5cf67
2 changed files with 4 additions and 3 deletions

2
debian/changelog vendored
View file

@ -1,7 +1,7 @@
instead (1.4.5) unstable; urgency=low
* bug fix in rnd() w/o parameter;
* callpush/callpop/cctx moved to stead;
* callpush/callpop/cctx/strip moved to stead;
* bug fix in for_each;
-- Peter Kosyh <p.kosyh@gmail.com> Thu, 14 Jul 2011 16:18:00 +0400

View file

@ -63,7 +63,7 @@ function stead.getcmd(str)
end
stead.cmd = cmd
if cmd == 'load' or cmd == 'save' then
a[1] = strip(stead.string.sub(str, k + 1));
a[1] = stead.strip(stead.string.sub(str, k + 1));
stead.args = a;
return cmd, a
end
@ -73,7 +73,7 @@ function stead.getcmd(str)
if not i then
break
end
a[n] = strip(stead.string.sub(str, i, k));
a[n] = stead.strip(stead.string.sub(str, i, k));
n = n + 1;
end
stead.args = a;
@ -1925,6 +1925,7 @@ function strip(s)
s = stead.string.gsub(s, '[ \t]*$', '');
return s;
end
stead.strip = strip
function isForcedsc(v)
local r,g