aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-04-27 09:57:27 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-04-27 09:57:31 +0200
commit034963b2898a47e0be1c70bcfa2c5eb71ce85546 (patch)
treeab5bc9b5e5b3f7c455e6cdea95738c955aa44516 /server/sonar-web/src
parent0493aabeb154afe360f229418f79384016e33ff2 (diff)
downloadsonarqube-034963b2898a47e0be1c70bcfa2c5eb71ce85546.tar.gz
sonarqube-034963b2898a47e0be1c70bcfa2c5eb71ce85546.zip
Fix quality flaw
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/application.js b/server/sonar-web/src/main/js/application.js
index 4de2fefb40b..0e33e7b2d71 100644
--- a/server/sonar-web/src/main/js/application.js
+++ b/server/sonar-web/src/main/js/application.js
@@ -122,7 +122,7 @@ function dashboardParameters (urlHasSomething) {
var matchPeriod = queryString.match(/period=\d+/);
if (matchPeriod) {
// If we have a match for period, check that it is not project-specific
- var period = parseInt(/period=(\d+)/.exec(queryString)[1]);
+ var period = parseInt(/period=(\d+)/.exec(queryString)[1], 10);
if (period <= 3) {
parameters.push(matchPeriod[0]);
}