const code = path.charCodeAt(i);
if (code === CHAR_FORWARD_SLASH) {
// separators at the end of the string, stop now
if (!matchedSlash) {
start = i + 1;
break;
}
} else {
if (firstNonSlashEnd === -1) {