Skip to content

ed2k.parse fails to parse link without trailing slash #1

@rowaasr13

Description

@rowaasr13

ed2k.parse fails to parse link without trailing slash.

require('ed2k-link').parse('ed2k://|file|some_file.bin|1122334455|f7c055958cbfe75e66fe35c83710bef0|')

fails with:

Error: url:ed2k://|file|some_file.bin|1122334455|f7c055958cbfe75e66fe35c83710bef0| is not a ed2k link

This is format used by old ed2k_hash.exe and some other tools and, AFAIK, is accepted by pretty much every client starting from original and eMule. Maybe you should support it in .parse too.

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