mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-24 00:55:00 +03:00
Merge branch 'master' into custom
# Conflicts: # dist/crypto-pro.js # dist/crypto-pro.js.map # dist/crypto-pro.min.js # dist/crypto-pro.min.js.map # lib/crypto-pro.js # lib/crypto-pro.js.map
This commit is contained in:
commit
60a134d8b6
5113
dist/crypto-pro.js
vendored
Normal file
5113
dist/crypto-pro.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
dist/crypto-pro.js.map
vendored
Normal file
1
dist/crypto-pro.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
9
dist/crypto-pro.min.js
vendored
Normal file
9
dist/crypto-pro.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/crypto-pro.min.js.map
vendored
Normal file
1
dist/crypto-pro.min.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
4705
lib/crypto-pro.js
Normal file
4705
lib/crypto-pro.js
Normal file
File diff suppressed because it is too large
Load Diff
1
lib/crypto-pro.js.map
Normal file
1
lib/crypto-pro.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -24,6 +24,6 @@ describe('_extractCommonName', () => {
|
|||||||
', ',
|
', ',
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(_extractCommonName(string)).toBe('"ООО ""Сампо-Сервис"""');
|
expect(_extractCommonName(string)).toBe('ООО "Сампо-Сервис"');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export const _extractCommonName = (subjectName: string): string | undefined =>
|
export const _extractCommonName = (subjectName: string): string | undefined =>
|
||||||
subjectName.match(/CN=(.+?)(?:,|$)/)?.[1];
|
subjectName.match(/CN="?(.+?)"?(?:,|$)/)?.[1]?.replace(/"{2}/g, '"');
|
||||||
|
Loading…
Reference in New Issue
Block a user