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;