minor: fix indexOf call.
This commit is contained in:
parent
4ad7d90c9d
commit
abd89d3aee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue