##// END OF EJS Templates
hgweb: add format javascript function...
Alexander Plavin -
r19739:5bdc179e default
parent child Browse files
Show More
@@ -298,3 +298,9 function toggleLinewrap() {
298 298
299 299 setLinewrap(!getLinewrap());
300 300 }
301
302 function format(str, replacements) {
303 return str.replace(/%(\w+)%/g, function(match, p1) {
304 return String(replacements[p1]);
305 });
306 }
General Comments 0
You need to be logged in to leave comments. Login now