Only write flags when they evaluate to true.
This commit is contained in:
4
dist/pofile.js
vendored
4
dist/pofile.js
vendored
@@ -290,7 +290,9 @@ PO.Item.prototype.toString = function () {
|
||||
lines.push('#: ' + ref);
|
||||
});
|
||||
|
||||
var flags = Object.keys(this.flags);
|
||||
var flags = Object.keys(this.flags).filter(function (flag) {
|
||||
return !!this.flags[flag];
|
||||
}, this);
|
||||
if (flags.length > 0) {
|
||||
lines.push('#, ' + flags.join(','));
|
||||
}
|
||||
|
||||
2
dist/pofile.min.js
vendored
2
dist/pofile.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user