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:
Artem Vasilev 2021-03-17 18:22:20 +03:00
commit 60a134d8b6
8 changed files with 9832 additions and 2 deletions

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

View File

@ -24,6 +24,6 @@ describe('_extractCommonName', () => {
', ',
);
expect(_extractCommonName(string)).toBe('"ООО ""Сампо-Сервис"""');
expect(_extractCommonName(string)).toBe('ООО "Сампо-Сервис"');
});
});

View File

@ -1,2 +1,2 @@
export const _extractCommonName = (subjectName: string): string | undefined =>
subjectName.match(/CN=(.+?)(?:,|$)/)?.[1];
subjectName.match(/CN="?(.+?)"?(?:,|$)/)?.[1]?.replace(/"{2}/g, '"');