Skip to content

Formatting for biorxiv short-circuits #1

@jtpdowns

Description

@jtpdowns

Hello! I've been using this library for a while, and I just started testing some functionality I hadn't needed when I noticed that the biorxiv id doesn't currently work as described on the README. If I enter an id expression with a colon in it like "biorxiv:570689", I get an error because the code ends up constructing a DOI with colon in it. I think this is because the regular expression 'biorxiv':'^biorxiv ?|^biorxiv:' in the tests always matches the first expression before the second one. It might just work to swap the two cases in the regex.

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