fix termcap parser

This commit is contained in:
Christopher Jeffrey 2013-02-24 07:40:42 -06:00
parent 4703d45fef
commit f8569144ea
1 changed files with 1 additions and 1 deletions

View File

@ -852,7 +852,7 @@ Tput.prototype.parseTermcap = function(data) {
data = data.replace(/^#[^\n]+/gm, '');
// split entries
entries = data.split(/\n+/);
entries = data.trim().split(/\n+/);
for (i = 0; i < entries.length; i++) {
fields = entries[i].split(/:+/);