Add capital letters as acceptable characters in key matching

This commit is contained in:
Sean Killeen 2021-03-17 11:57:55 -04:00 committed by GitHub
parent 4b6f4eb000
commit 37efedabd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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-zA-Z0-9-]+\/[_.a-zA-Z0-9-]+)/);
if (!parts) {
return;