reduce number of gsub calls for text variable substitutions #4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch ":trade_list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use lua feature that allows to specify table with substitutions to
string.gsub()
Ah yes. Nice idea. Wasn't aware how..capable...the Lua functions were in that regard. Nice :-)
You can also use a function for substitution argument - it will be called with each matched substring and can decide arbitrarily what to do, if you need some complex logic there.