139
140
if (globUrlPart[globUrlOffset] === '*') {
141
>
// Any match. Either consume one thing and don't advance base or consume nothing and do.
urlGlob.ts
142
>
if (urlOffset + 1 === urlPart.length) {
143
>
// If we're at the end of the input url consume one from both.
144
>
options.push(doUrlPartMatch(memo, includePortLogic, urlPart, globUrlPart, urlOffset + 1, globUrlOffset + 1));
145
>
} else {
146
>
options.push(doUrlPartMatch(memo, includePortLogic, urlPart, globUrlPart, urlOffset + 1, globUrlOffset));
147
>
}
148
>
options.push(doUrlPartMatch(memo, includePortLogic, urlPart, globUrlPart, urlOffset, globUrlOffset + 1));
149
>
}
150
151
if (includePortLogic && globUrlPart[globUrlOffset] + globUrlPart[globUrlOffset + 1] === ':*') {