diff --git a/asn1.js b/asn1.js index 3d816bc..c836d98 100644 --- a/asn1.js +++ b/asn1.js @@ -238,7 +238,7 @@ ASN1.prototype.content = function () { return null; var content = this.posContent(), len = Math.abs(this.length); - if (this.tag.tagClass !== 0) { // universal + if (!this.tag.isUniversal()) { if (this.sub !== null) return "(" + this.sub.length + " elem)"; //TODO: TRY TO PARSE ASCII STRING