Skip to main content

Function: hasNestedHttpSchemeAfterFirstDelimiter()

function hasNestedHttpSchemeAfterFirstDelimiter(value: string): boolean;

Defined in: shared/utils/urlSchemeValidation.ts:72

Returns true when a URL contains suspicious nested HTTP(S) scheme fragments after the first scheme delimiter.

Parametersโ€‹

valueโ€‹

string

Returnsโ€‹

boolean

Remarksโ€‹

This also rejects URLs ending with a bare :// suffix, which frequently indicates malformed concatenation.