INNER CODE UNIT · JavaScript
firstNonSlashEnd
mx-space/core · apps/admin/polyfills/packages/path/index.js:306
firstNonSlashEnd = i + 1
}
if (extIdx >= 0) {
// Try to match the explicit extension
if (code === ext.charCodeAt(extIdx)) {
if (--extIdx === -1) {
// 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
// component
extIdx = -1
end = firstNonSlashEnd
}
}
}