From cfb3df8a77b69dbf705412773210a61522cbe138 Mon Sep 17 00:00:00 2001 From: daz Date: Thu, 13 Jun 2024 13:18:31 -0600 Subject: [PATCH] Another --- sources/src/develocity/short-lived-token.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/src/develocity/short-lived-token.ts b/sources/src/develocity/short-lived-token.ts index b6a06f4..73fda35 100644 --- a/sources/src/develocity/short-lived-token.ts +++ b/sources/src/develocity/short-lived-token.ts @@ -158,6 +158,9 @@ type HostnameAccessKey = { export class DevelocityAccessCredentials { static readonly accessKeyRegexp = /^(\S+=\w+)(;\S+=\w+)*$/ static readonly accessKeyRegexp2 = /^([^\s]+=\w+)(;\S+=\w+)*$/ + static readonly accessKeyRegexp3 = /^([^;\s]+=\w+)(;[^;\s]+=\w+)*$/ + // static readonly accessKeyRegexp4 = /^([\w\.]+=\w+)(;[\w\.]+=\w+)*$/ + // static readonly accessKeyRegexp5 = /^(\S+=\w+)(;\S+=\w+)*$/ readonly keys: HostnameAccessKey[] private constructor(allKeys: HostnameAccessKey[]) {