mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-24 06:52:13 +00:00
Offer additional logging when key doesn't match regex
This commit is contained in:
parent
4b6f4eb000
commit
aa78d71de6
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -53,6 +53,7 @@ try {
|
||||||
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/);
|
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/);
|
||||||
|
|
||||||
if (!parts) {
|
if (!parts) {
|
||||||
|
console.log(`WARN: key '{key}' does not match the appropriate format; skipping git configuration`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue