mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-25 00:26:44 +00:00
4dcac2fcd9
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 |
||
---|---|---|
.. | ||
luabit | ||
stringtools | ||
ustring | ||
libraryUtil.lua | ||
mw.lua | ||
mw.site.lua | ||
mw.uri.lua | ||
mw.ustring.lua | ||
package.lua |