Comparing version 2.1.2 to 2.1.3
@@ -80,3 +80,3 @@ var inherits = require('inherits'); | ||
return this.reporter.error('objid not found in values map'); | ||
id = values[id].split(/\s+/g); | ||
id = values[id].split(/[\s\.]+/g); | ||
for (var i = 0; i < id.length; i++) | ||
@@ -86,2 +86,4 @@ id[i] |= 0; | ||
id = id.slice(); | ||
for (var i = 0; i < id.length; i++) | ||
id[i] |= 0; | ||
} | ||
@@ -88,0 +90,0 @@ |
{ | ||
"name": "asn1.js", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "ASN.1 encoder and decoder", | ||
@@ -5,0 +5,0 @@ "main": "lib/asn1.js", |
@@ -84,2 +84,12 @@ var assert = require('assert'); | ||
}); | ||
test('should properly encode objid with dots', function() { | ||
this.objid({ | ||
'1.2.398.3.10.1.1.1.2.2': 'yes' | ||
}); | ||
}, 'yes', '060a2a830e030a0101010202'); | ||
test('should properly encode objid as array of strings', function() { | ||
this.objid(); | ||
}, '1.2.398.3.10.1.1.1.2.2'.split('.'), '060a2a830e030a0101010202'); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82648
2369