mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-24 00:55:00 +03:00
багфикс поля с названием сертификата в случае, когда Common Name указано в конце subjectName
This commit is contained in:
parent
591408a0c4
commit
0cde2a9d4c
2
dist/1.crypto-pro.js
vendored
2
dist/1.crypto-pro.js
vendored
@ -704,7 +704,7 @@ webpackJsonpCryptoPro([1],[
|
||||
* */
|
||||
function prepareCertsInfo(items) {
|
||||
return items.map(function (c) {
|
||||
c.name = c.subjectName.match(/CN=(.+?),/);
|
||||
c.name = c.subjectName.match(/CN=(.+?)(?:,|$)/);
|
||||
|
||||
// Удалось ли вытащить Common Name
|
||||
if (c.name && c.name[1]) {
|
||||
|
2
dist/1.crypto-pro.js.map
vendored
2
dist/1.crypto-pro.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/2.crypto-pro.js
vendored
2
dist/2.crypto-pro.js
vendored
@ -147,7 +147,7 @@ webpackJsonpCryptoPro([2],[
|
||||
* */
|
||||
function prepareCertsInfo(items) {
|
||||
return items.map(function (c) {
|
||||
c.name = c.subjectName.match(/CN=(.+?),/);
|
||||
c.name = c.subjectName.match(/CN=(.+?)(?:,|$)/);
|
||||
|
||||
// Удалось ли вытащить Common Name
|
||||
if (c.name && c.name[1]) {
|
||||
|
2
dist/2.crypto-pro.js.map
vendored
2
dist/2.crypto-pro.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/crypto-pro.js.map
vendored
2
dist/crypto-pro.js.map
vendored
File diff suppressed because one or more lines are too long
@ -138,7 +138,7 @@ function getDateObj(dateObj) {
|
||||
* */
|
||||
function prepareCertsInfo(items) {
|
||||
return items.map(function (c) {
|
||||
c.name = c.subjectName.match(/CN=(.+?),/);
|
||||
c.name = c.subjectName.match(/CN=(.+?)(?:,|$)/);
|
||||
|
||||
// Удалось ли вытащить Common Name
|
||||
if (c.name && c.name[1]) {
|
||||
|
Loading…
Reference in New Issue
Block a user