INNER CODE UNIT · JavaScript

preDotState

mx-space/core · apps/admin/polyfills/packages/path/index.js:384

        preDotState = -1
      }
    }

    if (
      startDot === -1 ||
      end === -1 ||
      // We saw a non-dot character immediately before the dot
      preDotState === 0 ||
      // The (right-most) trimmed path component is exactly '..'
      (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
    ) {
      return ''
    }
    return path.slice(startDot, end)
  },

  format: function format(pathObject) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…