Go to file
Brad Jorsch 4dcac2fcd9 Fix mw.ustring.gmatch and patterns with '^'
The Lua manual says this:

 For this function, a '^' at the start of a pattern does not work as an
 anchor, as this would prevent the iteration.

I had interpreted that to mean that a pattern starting with '^' would
never match in gmatch. But further testing reveals that the '^' is just
treated as a literal character: string.gmatch( "foo ^bar baz", "^%a+" )
will match "^bar".

Change-Id: Id91d6ee2db753ce1d6a4f6ae27764691d9e9fdc4
2013-02-14 14:25:55 -05:00
common Allow extensions to add libraries 2013-02-14 12:38:03 -05:00
engines Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
modules Handle session loss in the console 2013-02-11 13:23:10 -05:00
tests/engines Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
.gitignore Lua ustring implementation 2013-02-12 14:26:29 -05:00
.gitreview Adding .gitreview 2012-04-06 13:46:17 -04:00
Scribunto.i18n.php Localisation updates from http://translatewiki.net. 2013-02-13 21:46:14 +00:00
Scribunto.magic.php Localisation updates from http://translatewiki.net. 2012-10-03 20:17:56 +00:00
Scribunto.namespaces.php Add Hebrew namespace aliases 2012-08-26 18:20:59 +00:00
Scribunto.php Merge "Lua ustring implementation" 2013-02-13 03:32:43 +00:00