From 29663a17d1697e0abc01f707d5a38d1c9df094e0 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 10 Aug 2026 10:04:21 +0200 Subject: [PATCH] fix(git-node): update regex to support GitHub App installation tokens --- lib/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth.js b/lib/auth.js index 1a85fc17..3e1ad68c 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -7,7 +7,7 @@ import { clearCachedConfig, encryptValue, getMergedConfig, getNcurcPath } from ' export default lazy(auth); -function check(username, token, format = /^[A-Za-z0-9_]+$/) { +function check(username, token, format = /^[A-Za-z0-9\-_.]+$/) { if (typeof username !== 'string') { throw new Error(`username must be a string, received ${typeof username}`); }