From 2bad1b0ab5ee1bf79c44fbef7a68466ba97d3df0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 14 Nov 2010 14:12:36 -0500 Subject: [PATCH] Specify the radix when using parseInt(). --- web_frontend/tv_renamer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_frontend/tv_renamer.js b/web_frontend/tv_renamer.js index 45074e4..4e142c3 100644 --- a/web_frontend/tv_renamer.js +++ b/web_frontend/tv_renamer.js @@ -91,7 +91,7 @@ armadillo.TVRenamer.prototype.parseName_ = function(name) { var matches = name.match(pattern); if (!matches || matches.length < 5) return null; - return [matches[2], parseInt(matches[3]), parseInt(matches[5])]; + return [matches[2], parseInt(matches[3], 10), parseInt(matches[5], 10)]; }; /** -- 2.43.5