Skip to content

substr(-1) not supported in all browsers #6

Description

@panthershark

Older browsers do not support substr(-1) and this makes url unusable in older browsers. I have been using this polyfill in my libraries to get around it but IMO, we should fix this in the browserify dep.

https://github.com/tommymessbauer/substr-polyfill/blob/master/index.js

The core node.js team rejected the change on the grounds that node is not meant to support browsers.
nodejs/node-v0.x-archive#6745

I have a PR coming...

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