INNER CODE UNIT · JavaScript
startDot
mx-space/core · apps/admin/polyfills/packages/path/index.js:353
var startDot = -1
var startPart = 0
var end = -1
var matchedSlash = true
// Track the state of characters (if any) we see before our first dot and
// after any path separator we find
var preDotState = 0
for (var 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) {
startPart = i + 1
break
}
continue
}