User:Mike Dillon/Scripts/recentpages.js: Difference between revisions

Content deleted Content added
No edit summary
tweak code for zero-width spaces
Line 78:
 
var itemLabel = historyItems[n].replace(/_/g, " ");
// Add zero-width spaces before some punctuation
itemLabel = itemLabel.replace(/\([/(])/g, "\u200B/$1");
// Add zero-width spaces after other punctuation
itemLabel = itemLabel.replace(/([:;,.)-])/g, "$1\u200B");
 
historyList.appendChild(li(