Skip to content

Commit

Permalink
Update identity-aws-auth-validators.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Feb 11, 2025
1 parent 6f90d3b commit 30284e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from "zod";

const twelveDigitRegex = /^\d{12}$/;
const arnRegex = /^arn:aws:iam::\d{12}:(user\/[\w+=,.@/-]+|role\/[\w+=,.@/-]+|\*)$/;
const arnRegex = /^arn:aws:iam::\d{12}:(user\/[a-zA-Z0-9_.@+*/-]+|role\/[a-zA-Z0-9_.@+*/-]+|\*)$/;

export const validateAccountIds = z
.string()
Expand Down

0 comments on commit 30284e3

Please sign in to comment.