Skip to content

Commit

Permalink
fix(sfdxauthurl): fix regex for sfdx validation (dxatscale#1394)
Browse files Browse the repository at this point in the history
fix validate sfdx auth url regex
  • Loading branch information
rygramer-usds authored and azlam-abdulsalam committed Aug 30, 2023
1 parent 0e5f12a commit 1aae484
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function isValidSfdxAuthUrl(sfdxAuthUrl: string): boolean {
return true;
} else {
let match = sfdxAuthUrl.match(
/force:\/\/(?<clientId>[a-zA-Z]+):(?<clientSecret>[a-zA-Z0-9]*):(?<refreshToken>[a-zA-Z0-9._=]+)@.+/
/force:\/\/(?<clientId>[a-zA-Z0-9._=]+):(?<clientSecret>[a-zA-Z0-9]*):(?<refreshToken>[a-zA-Z0-9._=]+)@.+/
);

if (match !== null) {
Expand Down

0 comments on commit 1aae484

Please sign in to comment.