<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AText</id>
	<title>Module:Text - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AText"/>
	<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Text&amp;action=history"/>
	<updated>2026-05-31T00:08:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Module:Text&amp;diff=581&amp;oldid=prev</id>
		<title>BoxWiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Text&amp;diff=581&amp;oldid=prev"/>
		<updated>2021-05-13T18:14:05Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:14, 13 May 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BoxWiki</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Module:Text&amp;diff=580&amp;oldid=prev</id>
		<title>Planks&gt;Majr: Created page with &quot;-- Source: https://phabricator.wikimedia.org/diffusion/ELUA/browse/master/includes/engines/LuaCommon/lualib/mw.text.lua local p = {}  function p.gsplit( text, pattern, plain )...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Text&amp;diff=580&amp;oldid=prev"/>
		<updated>2018-04-22T10:56:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Source: https://phabricator.wikimedia.org/diffusion/ELUA/browse/master/includes/engines/LuaCommon/lualib/mw.text.lua local p = {}  function p.gsplit( text, pattern, plain )...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Source: https://phabricator.wikimedia.org/diffusion/ELUA/browse/master/includes/engines/LuaCommon/lualib/mw.text.lua&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.gsplit( text, pattern, plain )&lt;br /&gt;
  local s, l = 1, text:len()&lt;br /&gt;
  return function ()&lt;br /&gt;
    if s then&lt;br /&gt;
      local e, n = text:find( pattern, s, plain )&lt;br /&gt;
      local ret&lt;br /&gt;
      if not e then&lt;br /&gt;
        ret = text:sub( s )&lt;br /&gt;
        s = nil&lt;br /&gt;
      elseif n &amp;lt; e then&lt;br /&gt;
        -- Empty separator!&lt;br /&gt;
        ret = text:sub( s, e )&lt;br /&gt;
        if e &amp;lt; l then&lt;br /&gt;
          s = e + 1&lt;br /&gt;
        else&lt;br /&gt;
          s = nil&lt;br /&gt;
        end&lt;br /&gt;
      else&lt;br /&gt;
        ret = e &amp;gt; s and text:sub( s, e - 1 ) or ''&lt;br /&gt;
        s = n + 1&lt;br /&gt;
      end&lt;br /&gt;
      return ret&lt;br /&gt;
    end&lt;br /&gt;
  end, nil, nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.split( text, pattern, plain )&lt;br /&gt;
  local ret = {}&lt;br /&gt;
  for m in p.gsplit( text, pattern, plain ) do&lt;br /&gt;
    ret[#ret+1] = m&lt;br /&gt;
  end&lt;br /&gt;
  return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.trim( s, charset )&lt;br /&gt;
	charset = charset or '\t\r\n\f '&lt;br /&gt;
	s = s:gsub( '^[' .. charset .. ']*(.-)[' .. charset .. ']*$', '%1' )&lt;br /&gt;
	return s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Planks&gt;Majr</name></author>
		
	</entry>
</feed>