From f27072db166af7530a6770798ed4da842f25aff9 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 5 Dec 2018 05:23:36 +0100 Subject: [PATCH] common.js: handle compound names --- frontend/static/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } ); }