Module:Citation/CS1/COinS: Difference between revisions

long-time corrupted-metadata bug fixed;
(synch from sandbox;)
(long-time corrupted-metadata bug fixed;)
value = value:gsub ('\226\128\138', ' '); -- replace hair space with plain space
value = value:gsub ('‍', ''); -- remove ‍ entities
value = value:mw.ustring.gsub (value, '[\226\128\141\226\128\139\194\173]', '') ; -- remove zero-width joiner, zero-width space, soft hyphen
value = value:gsub ('[\009\010\013]', ' '); -- replace horizontal tab, line feed, carriage return with plain space
return value;
Anonymous user