diff --git a/frontend/static/js/common.js b/frontend/static/js/common.js index 8be555e2..4f6a457d 100644 --- a/frontend/static/js/common.js +++ b/frontend/static/js/common.js @@ -2,7 +2,7 @@ String.prototype.capitalize = function() { return this .toLowerCase() .replace( - /(^|\s)([a-z])/g, + /(^|\s|-)([a-z])/g, function(m,p1,p2) { return p1+p2.toUpperCase(); } ); }