From 8efba79453c19c16d2d420e5de6b91b75ab65ee6 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 1 Feb 2015 07:41:26 -0800 Subject: [PATCH] cast vc to an int. --- lib/gpmclient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gpmclient.js b/lib/gpmclient.js index cbed14a..6683713 100644 --- a/lib/gpmclient.js +++ b/lib/gpmclient.js @@ -109,7 +109,7 @@ function GpmClient(options) { var vc; if (tty) { var tty = tty[0]; - vc = /[0-9]+$/.exec(tty)[0]; + vc = +/[0-9]+$/.exec(tty)[0]; } var self = this;