// Try to match the explicit extension
if (code === suffix.charCodeAt(extIdx)) {
// We matched the extension, so mark this as the end of our path
// component
end = i;
}
} else {
// Extension does not match, so our result is the entire path