mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 17:50:06 +00:00
0367e9bddd
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 |
||
---|---|---|
common | ||
engines | ||
i18n | ||
modules | ||
tests/engines | ||
.gitignore | ||
.gitreview | ||
.jshintrc | ||
composer.json | ||
Scribunto.i18n.php | ||
Scribunto.magic.php | ||
Scribunto.namespaces.php | ||
Scribunto.php |