aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/scripts
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-12 10:41:31 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-16 11:08:02 +0200
commit46527be35cdf4354a2ff619f66a8ac796f6d3c85 (patch)
tree9d4429d20ccfbe4e687ef1028be973494efdaeb4 /server/sonar-web/scripts
parent1ceb2bbf0a279e63de3fccb3f37e31994958e6c7 (diff)
downloadsonarqube-46527be35cdf4354a2ff619f66a8ac796f6d3c85.tar.gz
sonarqube-46527be35cdf4354a2ff619f66a8ac796f6d3c85.zip
warn about missing messages
Diffstat (limited to 'server/sonar-web/scripts')
-rw-r--r--server/sonar-web/scripts/utils/getMessages.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/scripts/utils/getMessages.js b/server/sonar-web/scripts/utils/getMessages.js
index aa36cad29bb..ac9c71aeec0 100644
--- a/server/sonar-web/scripts/utils/getMessages.js
+++ b/server/sonar-web/scripts/utils/getMessages.js
@@ -34,8 +34,8 @@ function getMessages() {
const lines = content.split('\n');
lines.forEach(line => {
const parts = line.split('=');
- if (parts.length === 2) {
- messages[parts[0]] = parts[1];
+ if (parts.length > 1) {
+ messages[parts[0]] = parts.slice(1).join('=');
}
});
return messages;