Document internal-whitespace regex intent

Co-authored-by: Eric Allam <eric@trigger.dev>
This commit is contained in:
Cursor Agent
2026-02-15 05:58:31 +00:00
parent b72e6b6d97
commit fcec4c15ea
+2
View File
@@ -457,6 +457,8 @@ const BASE_URL_VALIDATION_ERRORS = {
credentials: "baseURL must not include username or password credentials",
} as const;
// Includes standard whitespace plus common invisible separator/control marks
// that can make URLs look valid while behaving unexpectedly.
const INTERNAL_WHITESPACE_REGEX = /[\s\u200B\u200C\u200D\u2060\uFEFF]/u;
function resolvePayloadMapper<