mediawiki-extensions-Scribunto/engines/LuaCommon
Brad Jorsch ad3e5a7c48 Fix LuaSandbox mw.ustring.byteoffset with negative 'i'
Negative values for 'i' in mw.ustring.byteoffset are supposed to count
from the end of the string. But in LuaSandbox, it was actually counting
from two bytes before the end of the string due to a typo.

Fix that, and add some tests for it.

Bug: 50176
Change-Id: Iceee1022a55abd7a08df1ea7843e1277eb02798b
2013-06-25 10:06:01 -04:00
..
lualib (bug 47365) Fix edge cases in mw.ustring.find, mw.ustring.match 2013-05-10 06:00:02 +00:00
LanguageLibrary.php Don't pass negative years to Language::sprintfDate 2013-04-19 17:59:48 -04:00
LibraryBase.php Clean up title handling for defaultUrl 2013-02-07 15:45:49 -05:00
LuaCommon.php Remove mw.getLogBuffer and others from public interface 2013-04-14 23:59:07 +00:00
LuaInterpreter.php (bug 45684) Don't count argument parsing time towards Lua limit 2013-03-12 03:18:05 +00:00
MessageLibrary.php Add mw.message library 2013-02-26 22:20:04 -08:00
SiteLibrary.php Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
TextLibrary.php Add text module 2013-03-20 10:10:15 -04:00
TitleLibrary.php (bug 46405) Fix errors in mw.title.new( pageid ) 2013-03-21 09:39:25 -04:00
UriLibrary.php Clean up argument lists 2013-03-04 14:55:46 -05:00
UstringLibrary.php Fix LuaSandbox mw.ustring.byteoffset with negative 'i' 2013-06-25 10:06:01 -04:00