Module:Trim quotes: திருத்தங்களுக்கு இடையிலான வேறுபாடு

தமிழர்விக்கியிலிருந்து
Jump to navigation Jump to search
imported>AntanO
from en
 
imported>Lingam
"local p = {} function p._trim(s) if s then if s:match([[^(['"]).*%1$]]) then return p._trim(string.sub(s,2,-2)) else return s end else return "" end end function p.trim(frame) local s = (frame.args['s'] or frame.args[1]) or (frame:getParent().args['s'] or frame:getParent().args[1]) return p._trim(s) end return p"-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது
 
(வேறுபாடு ஏதுமில்லை)

12:42, 25 சனவரி 2024 இல் கடைசித் திருத்தம்

Documentation for this module may be created at Module:Trim quotes/doc

local p = {}

function p._trim(s)
	if s then
		if s:match([[^(['"]).*%1$]]) then return p._trim(string.sub(s,2,-2)) else return s end
	else
		return ""
	end
end

function p.trim(frame)
	local s = (frame.args['s'] or frame.args[1]) or (frame:getParent().args['s'] or frame:getParent().args[1])
	return p._trim(s)
end

return p
"https://tamilar.wiki/w/index.php?title=Module:Trim_quotes&oldid=89496" இலிருந்து மீள்விக்கப்பட்டது