mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-03-13 23:09:07 +08:00
Use case-insensitive regex matching when scanning key comments
Resolves #68, closes #70, closes #71. Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -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;
|
||||
|
||||
2
index.js
2
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;
|
||||
|
||||
Reference in New Issue
Block a user