Skip to content

Commit 4681241

Browse files
mpdudeSeanKilleen
andcommitted
Use case-insensitive regex matching when scanning key comments
Resolves #68, closes #70, closes #71. Co-authored-by: Sean Killeen <[email protected]>
1 parent 4b6f4eb commit 4681241

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ try {
167167
console.log('Configuring deployment key(s)');
168168

169169
child_process.execFileSync(sshAdd, ['-L']).toString().split(/\r?\n/).forEach(function(key) {
170-
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/);
170+
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i);
171171

172172
if (!parts) {
173173
return;

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ try {
5050
console.log('Configuring deployment key(s)');
5151

5252
child_process.execFileSync(sshAdd, ['-L']).toString().split(/\r?\n/).forEach(function(key) {
53-
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/);
53+
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i);
5454

5555
if (!parts) {
5656
return;

0 commit comments

Comments
 (0)