INNER CODE UNIT · JavaScript
extIdx
mx-space/core · apps/admin/polyfills/packages/path/index.js:290
var extIdx = ext.length - 1
var firstNonSlashEnd = -1
for (i = path.length - 1; i >= 0; --i) {
var code = path.charCodeAt(i)
if (code === 47 /*/*/) {
// If we reached a path separator that was not part of a set of path
// separators at the end of the string, stop now
if (!matchedSlash) {
start = i + 1
break
}
} else {
if (firstNonSlashEnd === -1) {
// We saw the first non-path separator, remember this index in case
// we need it if the extension ends up not matching
matchedSlash = false
firstNonSlashEnd = i + 1
}