mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add link to regex doc
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
parent
dd61789663
commit
3d2e854ad3
@ -41,6 +41,7 @@ export const isCertActive = (cert: string) => {
|
|||||||
export const getMacRootCA = async () => {
|
export const getMacRootCA = async () => {
|
||||||
// inspired mac-ca https://github.com/jfromaniello/mac-ca
|
// inspired mac-ca https://github.com/jfromaniello/mac-ca
|
||||||
const args = "find-certificate -a -p";
|
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 splitPattern = /(?=-----BEGIN\sCERTIFICATE-----)/g;
|
||||||
const systemRootCertsPath = "/System/Library/Keychains/SystemRootCertificates.keychain";
|
const systemRootCertsPath = "/System/Library/Keychains/SystemRootCertificates.keychain";
|
||||||
const bin = "/usr/bin/security";
|
const bin = "/usr/bin/security";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user