Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Skip calculation of file name in get-path-extension #788

Description

@jfroelich

I ran into unexplainable behavior with using fromIndex parameter as documented on MDB, such as '/b.html'.lastIndexOf('.', 1). To work around this, get the substring filename and work with the filename.

I should not have to get the filename (and create a temporary substring) and should be able to specify the parameter to lastIndexOf.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions