diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-12 10:41:31 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-16 11:08:02 +0200 |
commit | 46527be35cdf4354a2ff619f66a8ac796f6d3c85 (patch) | |
tree | 9d4429d20ccfbe4e687ef1028be973494efdaeb4 /server/sonar-web/scripts | |
parent | 1ceb2bbf0a279e63de3fccb3f37e31994958e6c7 (diff) | |
download | sonarqube-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.js | 4 |
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; |