Skip to content

Protocol regex wrong? #132

@hackerwins

Description

@hackerwins

There is a problem with the regular expression to determine the protocol.

URI.protocol_expression = /^[a-z][a-z0-9-+-]*$/i;

https://github.com/medialize/URI.js/blob/gh-pages/src/URI.js#L172

How about changing -+- to -+\. ?

http://stackoverflow.com/questions/3641722/valid-characters-for-uri-schemes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions