150
151
if (includePortLogic && globUrlPart[globUrlOffset] + globUrlPart[globUrlOffset + 1] === ':*') {
152
>
// any port match. Consume a port if it exists otherwise nothing. Always consume the base.
urlGlob.ts
153
>
if (urlPart[urlOffset] === ':') {
154
>
let endPortIndex = urlOffset + 1;
155
>
do { endPortIndex++; } while (/[0-9]/.test(urlPart[endPortIndex]));
156
>
options.push(doUrlPartMatch(memo, includePortLogic, urlPart, globUrlPart, endPortIndex, globUrlOffset + 2));
157
>
} else {
158
options.push(doUrlPartMatch(memo, includePortLogic, urlPart, globUrlPart, urlOffset, globUrlOffset + 2));
159
}
161
162
return (memo[urlOffset][globUrlOffset] = options.some(a => a === true));