Module:Template test case: Difference between revisions

m 1 revision imported
It is possible that, due to a chain of transclusions, the output can appear as & #39;& #34;` and not '"` (Spaced & and # to let it display correctly). This change fixes detection of that
Line 327: Line 327:
local out = obj:getOutput()
local out = obj:getOutput()
-- Remove the random parts from strip markers.
-- Remove the random parts from strip markers.
out = out:gsub('(\127\'"`UNIQ.-)%-%x+%-(QINU`"\'\127)', '%1%2')
out = out:gsub('(\127[^\127]*UNIQ%-%-%l+%-)%x+(%-%-?QINU[^\127]*\127)', '%1%2')
return out
return out
end
end