fix termcap parser
This commit is contained in:
parent
4703d45fef
commit
f8569144ea
|
@ -852,7 +852,7 @@ Tput.prototype.parseTermcap = function(data) {
|
||||||
data = data.replace(/^#[^\n]+/gm, '');
|
data = data.replace(/^#[^\n]+/gm, '');
|
||||||
|
|
||||||
// split entries
|
// split entries
|
||||||
entries = data.split(/\n+/);
|
entries = data.trim().split(/\n+/);
|
||||||
|
|
||||||
for (i = 0; i < entries.length; i++) {
|
for (i = 0; i < entries.length; i++) {
|
||||||
fields = entries[i].split(/:+/);
|
fields = entries[i].split(/:+/);
|
||||||
|
|
Loading…
Reference in New Issue