@newspapper/core
    Preparing search index...

    Function parseUploadRef

    • Accept harbour-9f3a1c2b, /uploads/harbour-9f3a1c2b, or the same with an extension, and return the bare ref. Anything else — including an absolute URL — is not a reference to an upload.

      Parameters

      • src: unknown

      Returns string | null