<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://atlasnacional.ign.es/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AStr_endswith</id>
	<title>Módulo:Str endswith - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://atlasnacional.ign.es/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AStr_endswith"/>
	<link rel="alternate" type="text/html" href="http://atlasnacional.ign.es/index.php?title=M%C3%B3dulo:Str_endswith&amp;action=history"/>
	<updated>2026-04-05T19:13:46Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://atlasnacional.ign.es/index.php?title=M%C3%B3dulo:Str_endswith&amp;diff=3136&amp;oldid=prev</id>
		<title>Ane: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="http://atlasnacional.ign.es/index.php?title=M%C3%B3dulo:Str_endswith&amp;diff=3136&amp;oldid=prev"/>
		<updated>2018-11-16T07:59:04Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{str endswith}}.&lt;br /&gt;
&lt;br /&gt;
local TRUE_STRING = 'yes'&lt;br /&gt;
local FALSE_STRING = ''&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function trim(s)&lt;br /&gt;
	return s:match('^%s*(.-)%s*$')&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 == '' 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>Ane</name></author>
		
	</entry>
</feed>