fixed yubikey serial detection

This commit is contained in:
antelle 2020-05-06 23:06:22 +02:00
parent 66c219f6d1
commit 53b700aa70
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class YubiKeyOtpModel extends ExternalOtpDeviceModel {
if (err) {
return callback(err);
}
const yubiKeys = stdout.match(/\d+/gi);
const yubiKeys = stdout.match(/\d{3,}/gi);
if (yubiKeys.length < 0) {
return callback('No YubiKeys returned by "ykman list"');
}