Function trimLeadingSlashes

  • Makes sure the input path has no slashes at the beginning.

    Parameters

    • path: string

      Path to check.

    Returns string

    The potentially changed path.