mediawiki-extensions-Scribunto/engines/LuaCommon/lualib
Brad Jorsch 0367e9bddd Fix deceptively-simple pattern in pure-Lua ustring
The pure-Lua ustring pattern matching functions short-circuit to the
much faster string library when the pattern would match the same against
the raw bytes.

A pattern like "[^a-z]" can match a partial UTF-8 character when applied
bytewise, and so must be detected as unsafe.

Let's also directly test the pure-Lua module, instead of me having to
comment out lines in Scribunto_LuaUstringLibrary::register() whenever I
want to test them.

Change-Id: I91ed3374aadfea379b9db2e13b4248ab20df509e
2014-08-10 01:18:18 +00:00
..
luabit Clean up lualibs 2013-02-28 18:39:16 -08:00
ustring Fix deceptively-simple pattern in pure-Lua ustring 2014-08-10 01:18:18 +00:00
bit32.lua Add requirable bit32 library 2013-03-05 01:36:17 +00:00
libraryUtil.lua Add text module 2013-03-20 10:10:15 -04:00
mw.html.lua Make the cssEncode pattern simpler 2014-07-11 11:40:57 -04:00
mw.language.lua Provide access to Language::getFallbacksFor() 2013-12-16 14:12:47 -05:00
mw.lua Create mw.dumpObject split from mw.logObject 2014-07-09 10:30:53 -04:00
mw.message.lua Remove message formats other than plain 2014-02-03 15:29:39 -05:00
mw.site.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
mw.text.lua Simplify mw.text.listToText 2014-07-14 19:32:33 +09:00
mw.title.lua Add protectionLevels variable to mw.title output 2014-01-15 14:53:18 -05:00
mw.uri.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
mw.ustring.lua Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
mwInit.lua Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00
package.lua Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00