From 034963b2898a47e0be1c70bcfa2c5eb71ce85546 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Mon, 27 Apr 2015 09:57:27 +0200 Subject: [PATCH] Fix quality flaw --- server/sonar-web/src/main/js/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } -- 2.39.5