117
// NOOP
118
} else if (dots === 2) {
119
>
if (res.length < 2 || lastSegmentLength !== 2 ||
path.ts
120
res.charCodeAt(res.length - 1) !== CHAR_DOT ||
121
>
res.charCodeAt(res.length - 2) !== CHAR_DOT) {
path.ts
122
>
if (res.length > 2) {
123
>
const lastSlashIndex = res.lastIndexOf(separator);
124
>
if (lastSlashIndex === -1) {
125
res = '';
126
lastSegmentLength = 0;
128
res = res.slice(0, lastSlashIndex);
129
lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
130
}
132
>
dots = 0;
133
>
continue;
134
>
} else if (res.length !== 0) {
135
res = '';
136
lastSegmentLength = 0;