lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Well it breaks luasocket in url.lua.

5.1

> url = string.gsub("http://www.spinifex.net/index.html";, "^([%w][%w%+%-%.]*)%:"
, function(n) authority = n or "" print("hello" ) end)
hello
> =url
http://www.spinifex.net/index.html
> =authority
http

5.02
> url = string.gsub("http://www.spinifex.net/index.html";, "^([%w][%w%+%-%.]*)%:"
, function(n) authority = n or "" print("hello" ) end)
hello
> =url
http://www.spinifex.net/index.html
> =authority
http

Does someone want to volunteer to fix the a zillion gsubs in luasocket?

DB