Thread: String strip
View Single Post
01-31-15, 09:48 AM   #18
Voyager
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 22
Originally Posted by Resike View Post
I think this could work also, i'm just not sure it's faster then the single gsub call or not. Need to test it.
Seems like this could do the trick:
Code:
gsub(name, "%-[^ >]+", "")
Upvaluing gsub instead of using string.gsub or name:gsub is also faster.
  Reply With Quote