fix: Fix regex-based id validation when fetching user

Closes #1302
This commit is contained in:
Maksim Eltyshev
2025-08-19 13:53:40 +02:00
parent 168e556f06
commit 22cde183ff

View File

@@ -13,7 +13,7 @@ const Errors = {
const CURRENT_USER_ID = 'me';
const ID_OR_CURRENT_USER_ID_REGEX = new RegExp(`${ID_REGEX}|^${CURRENT_USER_ID}$`);
const ID_OR_CURRENT_USER_ID_REGEX = new RegExp(`${ID_REGEX.source}|^${CURRENT_USER_ID}$`);
const isCurrentUserIdOrIdInRange = (value) => value === CURRENT_USER_ID || isIdInRange(value);