cast vc to an int.
This commit is contained in:
parent
b6853fbd88
commit
8efba79453
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue