From 438bf928b77e1085fc0bd12dbc0c62847ee63b68 Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Sat, 18 Jan 2014 12:13:40 +0000 Subject: [PATCH] Fix a missing use of the new isUniversal() method. Closes #4 on GitHub. --- asn1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.51.2