Skip to content

Wrong puny_encode with hyphen  #110

@vandepitte

Description

@vandepitte

Version: urltools_1.7.3

Actual:

urltools::puny_encode('foo-bar.tld')
[1] "xn--foo-bar-.tld"

Expected:

urltools::puny_encode('foo-bar.tld')
[1] "foo-bar.tld"

Reason: foo-bar.tld only contains LDH labels and thus should not be converted to xn-- notation

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