Skip to content

Commit 46c51fd

Browse files
committed
[ui] Fix Slack MemberID format validation logic
1 parent 7990033 commit 46c51fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thirdeye-ui/src/app/utils/notifications/notifications.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ export const convertSlackConfigurationToSlackFormEntries = (
6262
};
6363

6464
export const validateSlackMemberIDFormat = (memberId: string): boolean => {
65-
return /^U[0-9A-Z]{10}$/.test(memberId);
65+
return /^[US][0-9A-Z]{8,}$/.test(memberId);
6666
};

0 commit comments

Comments
 (0)