<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.americanmusicclub.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AStr_endswith</id>
	<title>Module:Str endswith - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.americanmusicclub.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AStr_endswith"/>
	<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Module:Str_endswith&amp;action=history"/>
	<updated>2026-04-06T14:01:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Module:Str_endswith&amp;diff=7213&amp;oldid=prev</id>
		<title>Amc-admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Module:Str_endswith&amp;diff=7213&amp;oldid=prev"/>
		<updated>2016-11-19T04:23:26Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:23, 19 November 2016&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>Amc-admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Module:Str_endswith&amp;diff=5315&amp;oldid=prev</id>
		<title>Amc-admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Module:Str_endswith&amp;diff=5315&amp;oldid=prev"/>
		<updated>2016-11-19T00:53:37Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{str endswith}}.&lt;br /&gt;
&lt;br /&gt;
local TRUE_STRING = &amp;#039;yes&amp;#039;&lt;br /&gt;
local FALSE_STRING = &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function trim(s)&lt;br /&gt;
	return s:match(&amp;#039;^%s*(.-)%s*$&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local s = args[1]&lt;br /&gt;
	local pattern = args[2]&lt;br /&gt;
	if not s or not pattern then&lt;br /&gt;
		-- TRUE_STRING is not the natural choice here, but is needed for&lt;br /&gt;
		-- backwards compatibility.&lt;br /&gt;
		return TRUE_STRING&lt;br /&gt;
	end&lt;br /&gt;
	s = trim(s)&lt;br /&gt;
	pattern = trim(pattern)&lt;br /&gt;
	if pattern == &amp;#039;&amp;#039; then&lt;br /&gt;
		-- All strings end with the empty string.&lt;br /&gt;
		return TRUE_STRING&lt;br /&gt;
	end&lt;br /&gt;
	if mw.ustring.sub(s, 0 - mw.ustring.len(pattern), -1) == pattern then&lt;br /&gt;
		return TRUE_STRING&lt;br /&gt;
	else&lt;br /&gt;
		return FALSE_STRING&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Amc-admin</name></author>
	</entry>
</feed>