багфикс поля с названием сертификата в случае, когда Common Name указано в конце subjectName

This commit is contained in:
vgoma 2017-10-09 18:54:46 +03:00
parent 591408a0c4
commit 0cde2a9d4c
6 changed files with 6 additions and 6 deletions

View File

@ -704,7 +704,7 @@ webpackJsonpCryptoPro([1],[
* */ * */
function prepareCertsInfo(items) { function prepareCertsInfo(items) {
return items.map(function (c) { return items.map(function (c) {
c.name = c.subjectName.match(/CN=(.+?),/); c.name = c.subjectName.match(/CN=(.+?)(?:,|$)/);
// Удалось ли вытащить Common Name // Удалось ли вытащить Common Name
if (c.name && c.name[1]) { if (c.name && c.name[1]) {

File diff suppressed because one or more lines are too long

View File

@ -147,7 +147,7 @@ webpackJsonpCryptoPro([2],[
* */ * */
function prepareCertsInfo(items) { function prepareCertsInfo(items) {
return items.map(function (c) { return items.map(function (c) {
c.name = c.subjectName.match(/CN=(.+?),/); c.name = c.subjectName.match(/CN=(.+?)(?:,|$)/);
// Удалось ли вытащить Common Name // Удалось ли вытащить Common Name
if (c.name && c.name[1]) { if (c.name && c.name[1]) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -138,7 +138,7 @@ function getDateObj(dateObj) {
* */ * */
function prepareCertsInfo(items) { function prepareCertsInfo(items) {
return items.map(function (c) { return items.map(function (c) {
c.name = c.subjectName.match(/CN=(.+?),/); c.name = c.subjectName.match(/CN=(.+?)(?:,|$)/);
// Удалось ли вытащить Common Name // Удалось ли вытащить Common Name
if (c.name && c.name[1]) { if (c.name && c.name[1]) {