mediawiki-extensions-Scribunto/engines/LuaCommon
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
..
lualib Fix deceptively-simple pattern in pure-Lua ustring 2014-08-10 01:18:18 +00:00
HtmlLibrary.php Add mw.html to Scribunto 2014-01-03 00:04:34 +01:00
LanguageLibrary.php Set TTLs on outputs containing times 2014-06-23 15:52:17 +00:00
LibraryBase.php Clean up title handling for defaultUrl 2013-02-07 15:45:49 -05:00
LuaCommon.php Expose mw.log data on preview 2014-07-07 16:14:30 -04:00
LuaInterpreter.php Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00
MessageLibrary.php Remove leftover code for titles in messages 2014-03-18 13:52:51 -04:00
SiteLibrary.php Show blanknamespace in content language 2014-06-30 11:44:47 -04:00
TextLibrary.php Improve mw.text.nowiki 2013-09-03 17:36:36 -04:00
TitleLibrary.php Add protectionLevels variable to mw.title output 2014-01-15 14:53:18 -05:00
UriLibrary.php Clean up argument lists 2013-03-04 14:55:46 -05:00
UstringLibrary.php mw.ustring functions should accept numbers where string functions do 2014-06-27 12:31:04 -04:00