mozilla-lockwise / lockwise-android

Firefox's Lockwise app for Android
https://mozilla-lockwise.github.io/lockwise-android/
Mozilla Public License 2.0
623 stars 104 forks source link

Hostnames with "-" characters are not allowed: "Web address must have a valid hostname" #1264

Open mrsarm opened 2 years ago

mrsarm commented 2 years ago

Steps to reproduce

Try to create a new entry from the mobile app pressing the (+) button, in the "Web address" field, with a host name with the "-" character. Eg. https://www.gimp-forum.net or https://www.rust-lang.org/

Expected behavior

Allow to create the entry with "-" in the hostname.

Actual behavior

It will show the error "Web address must have a valid hostname". Even subdomain names with "-" are rejected.

Device & build information