Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
mw.unstring
testUnicode
Line 232:
end
end
-- Same bybut entity code - –
foundPositionStart, foundPositionEnd, foundMatch = mw.ustring.find(seekString, '^(%s*&[nm]dash;%s*)', currentPosition)
if (foundPositionStart) then
Line 596:
end
]]
 
function main.testUnicode(frame)
 
if (frame.args[1] == '—') then
return 'yes'
else
return 'no'
end
 
end
 
return main