Go to file
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
common Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00
engines Fix deceptively-simple pattern in pure-Lua ustring 2014-08-10 01:18:18 +00:00
i18n Localisation updates from https://translatewiki.net. 2014-08-09 20:01:48 +02:00
modules Expose mw.log data on preview 2014-07-07 16:14:30 -04:00
tests/engines Fix deceptively-simple pattern in pure-Lua ustring 2014-08-10 01:18:18 +00:00
.gitignore Update ignores for some emacs tmp files 2013-07-25 13:11:50 -04:00
.gitreview Adding .gitreview 2012-04-06 13:46:17 -04:00
.jshintrc Add .jshintrc file 2013-12-11 00:06:41 +01:00
composer.json Add composer.json file 2014-01-29 20:07:55 +01:00
Scribunto.i18n.php Update i18n shim 2014-04-22 13:40:40 +00:00
Scribunto.magic.php Localisation updates from https://translatewiki.net. 2014-05-31 19:01:51 +00:00
Scribunto.namespaces.php Namespace translation for Latvian 2014-04-13 23:19:05 +02:00
Scribunto.php Follow-up I7d4bb9062. Register tracking categories used. 2014-03-30 21:28:21 -03:00