|
Why does this behave in this way? I would expect the result to be:
ITEM;ITEMITEMITEM;ITEM 5
> > Even odder....
> >
> > Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> > > =(";a;"):gsub("a-", "ITEM")
> > ITEM;ITEMaITEM;ITEM 4
> >
> > Why is that 'a' still there?
>
> That's an independent bug. [...]
Please stop calling "bug" something that does not behave as you wanted
or imagined.
-- Roberto