Skip to content

Commit

Permalink
Merge pull request #3107 from Infisical/daniel/fix-arn-2
Browse files Browse the repository at this point in the history
fix: arn regex validation
  • Loading branch information
DanielHougaard authored Feb 11, 2025
2 parents 6f90d3b + 30284e3 commit d2cf296
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 d2cf296

Please sign in to comment.