# "Host is invalid" error when TLD is longer than 7 characters

**URL:** <https://meta.discourse.org/t/host-is-invalid-error-when-tld-is-longer-than-7-characters/46081>\
**Category:** Bug\
**Created:** [20.Июнь.2016 19:13:23 UTC](https://meta.discourse.org/t/host-is-invalid-error-when-tld-is-longer-than-7-characters/46081 "2016-06-20T19:13:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [22.Июль.2022 00:52:03 UTC](https://meta.discourse.org/t/host-is-invalid-error-when-tld-is-longer-than-7-characters/46081/9 "2022-07-22T00:52:03Z")

</div>

С тех пор, как это было сообщено, регулярные выражения значительно эволюционировали.

> <https://github.com/discourse/discourse/blob/8dad778fccd2facd63a96b061e6a5cbef219e70a/app/models/embeddable_host.rb#L68-L74>

Думаю, сейчас это уже исправлено?

---

_[View the full topic](https://meta.discourse.org/t/host-is-invalid-error-when-tld-is-longer-than-7-characters/46081)._
