A pattern to match until “::” not working with string.gsub
snippet in lua

A pattern to match until “::” not working with string.gsub

user3440

if (x)  then

end

if (y)  then

end