From 4681241867865c064d220082c7b6cbe128c16171 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Wed, 17 Mar 2021 18:27:52 +0000 Subject: [PATCH] Use case-insensitive regex matching when scanning key comments Resolves #68, closes #70, closes #71. Co-authored-by: Sean Killeen --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index f75d5b2..883d7c7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -167,7 +167,7 @@ try { console.log('Configuring deployment key(s)'); child_process.execFileSync(sshAdd, ['-L']).toString().split(/\r?\n/).forEach(function(key) { - const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/); + const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i); if (!parts) { return; diff --git a/index.js b/index.js index 5243e61..6c8d969 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ try { console.log('Configuring deployment key(s)'); child_process.execFileSync(sshAdd, ['-L']).toString().split(/\r?\n/).forEach(function(key) { - const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/); + const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i); if (!parts) { return;