74
return doUrlPartMatch(memo, includePortLogic, normalizedUrlPart, normalizedGlobUrlPart, 0, 0);
75
}
77
>
/**
78
>
* Recursively checks if a URL part matches a glob URL part.
79
>
* This function uses memoization to avoid recomputing results for the same inputs.
80
>
* It handles various cases such as exact matches, wildcard matches, and port logic.
81
>
* @param memo A memoization table to avoid recomputing results for the same inputs.
82
>
* @param includePortLogic Whether to include port logic in the matching process.
83
>
* @param urlPart The URL part to match with.
84
>
* @param globUrlPart The glob URL part to match against.
85
>
* @param urlOffset The current offset in the URL part.
86
>
* @param globUrlOffset The current offset in the glob URL part.
87
>
* @returns boolean - True if the URL part matches the glob URL part, false otherwise.
88
>
*/
89
function doUrlPartMatch(
90
memo: (boolean | undefined)[][],