From 3d2e854ad324c67352b5fa76c3454b1e04efb9f5 Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" Date: Mon, 1 Nov 2021 08:51:00 +0200 Subject: [PATCH] Add link to regex doc Signed-off-by: Hung-Han (Henry) Chen --- src/common/system-ca.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/system-ca.ts b/src/common/system-ca.ts index 217ffd5c22..8b8177097b 100644 --- a/src/common/system-ca.ts +++ b/src/common/system-ca.ts @@ -41,6 +41,7 @@ export const isCertActive = (cert: string) => { export const getMacRootCA = async () => { // inspired mac-ca https://github.com/jfromaniello/mac-ca const args = "find-certificate -a -p"; + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet#other_assertions const splitPattern = /(?=-----BEGIN\sCERTIFICATE-----)/g; const systemRootCertsPath = "/System/Library/Keychains/SystemRootCertificates.keychain"; const bin = "/usr/bin/security";