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

Content deleted Content added
tweak code for zero-width spaces
mNo edit summary
Line 79:
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");