docx-validate
    Preparing search index...

    Function resolvePartName

    • The entry in names that a package-relative part reference names: a query or fragment is dropped, since only the path names a part (System.IO.Packaging's ResolvePartUri keeps only the path, #361), \ reads as /, a leading / is dropped and dot segments are resolved, a climb past the package root stopping there (session 78, #986) and a final . or .. segment leaving a folder spelled with a final / (session 70, #962), then the OPC-equivalent entry is taken ({@link findEquivalentPart}). Falls back to the normalized name when no entry is equivalent, so a folder names no entry, and is undefined for a reference that is empty or names the package root (#356). The main-document checks resolve the officeDocument target here, so they agree on which entry it is (#349); the read model resolves it with resolveTarget, which reads a folder the same way.

      Parameters

      • names: readonly string[]
      • partName: string

      Returns string | undefined