Module:Citation/CS1/COinS: Difference between revisions
long-time corrupted-metadata bug fixed;
m>Trappist the monk (synch from sandbox;) |
m>Trappist the monk (long-time corrupted-metadata bug fixed;) |
||
Line 179: | Line 179: | ||
value = value:gsub ('\226\128\138', ' '); -- replace hair space with plain space | value = value:gsub ('\226\128\138', ' '); -- replace hair space with plain space | ||
value = value:gsub ('‍', ''); -- remove ‍ entities | 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 | value = value:gsub ('[\009\010\013]', ' '); -- replace horizontal tab, line feed, carriage return with plain space | ||
return value; | return value; |