@ldapjs/messages
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -37,3 +37,3 @@ 'use strict' | ||
// ascii attribute names | ||
if (/^[a-zA-Z][\w\d.;-]+$/.test(str) === true) { | ||
if (/^[a-zA-Z][\w\d.;-]*$/.test(str) === true) { | ||
return true | ||
@@ -40,0 +40,0 @@ } |
@@ -103,2 +103,9 @@ 'use strict' | ||
t.test('supports single character names (issue #2)', async t => { | ||
const req = new SearchRequest({ | ||
attributes: ['a'] | ||
}) | ||
t.strictSame(req.attributes, ['a']) | ||
}) | ||
t.end() | ||
@@ -105,0 +112,0 @@ }) |
@@ -5,3 +5,3 @@ { | ||
"description": "API for creating and parsing LDAP messages", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "repository": { |
234338
7734