minor: fix indexOf call.

This commit is contained in:
Christopher Jeffrey 2013-08-04 08:40:53 -05:00
parent 4ad7d90c9d
commit abd89d3aee
1 changed files with 1 additions and 1 deletions

View File

@ -1262,7 +1262,7 @@ Tput.prototype.parseTermcap = function(data, file) {
name: names[0],
names: names,
desc: names.pop(),
file: ~file[0].indexOf(path.sep)
file: ~file.indexOf(path.sep)
? path.resolve(file)
: file,
termcap: true