mediawiki-extensions-Scribunto/engines/LuaCommon/lualib
Brad Jorsch 4dcac2fcd9 Fix mw.ustring.gmatch and patterns with '^'
The Lua manual says this:

 For this function, a '^' at the start of a pattern does not work as an
 anchor, as this would prevent the iteration.

I had interpreted that to mean that a pattern starting with '^' would
never match in gmatch. But further testing reveals that the '^' is just
treated as a literal character: string.gmatch( "foo ^bar baz", "^%a+" )
will match "^bar".

Change-Id: Id91d6ee2db753ce1d6a4f6ae27764691d9e9fdc4
2013-02-14 14:25:55 -05:00
..
luabit Added more Lua environment features 2012-04-18 13:46:18 +10:00
stringtools Added more Lua environment features 2012-04-18 13:46:18 +10:00
ustring Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
libraryUtil.lua Lua library support functions 2013-01-31 12:40:39 -05:00
mw.lua Fix further non-local effects of library registration 2013-02-13 15:40:18 +11:00
mw.site.lua Fix further non-local effects of library registration 2013-02-13 15:40:18 +11:00
mw.uri.lua Fix further non-local effects of library registration 2013-02-13 15:40:18 +11:00
mw.ustring.lua Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
package.lua Fix package.loaded and other cleanups 2013-01-30 17:24:09 +00:00