Update parsing of headers
Remove wrong `.replace()` statement which breaks any language file from a language ending with the character `n`. It is unclear to me why this replace is even there. As it is even invalid to replace without supplying a string with what it needs to be replaced.
This commit is contained in:
parent
3eab1ece05
commit
c7c62caa54
@ -81,7 +81,7 @@ PO.parse = function(data) {
|
|||||||
header = header.trim().replace(/^"/, '').replace(/\\n"$/, '');
|
header = header.trim().replace(/^"/, '').replace(/\\n"$/, '');
|
||||||
var p = header.split(/:/)
|
var p = header.split(/:/)
|
||||||
, name = p.shift().trim()
|
, name = p.shift().trim()
|
||||||
, value = p.join(':').trim().replace(/n$/);
|
, value = p.join(':').trim();
|
||||||
po.headers[name] = value;
|
po.headers[name] = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user