WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32359, comment 14


Ignore:
Timestamp:
06/04/2015 09:28:36 PM (6 years ago)
Author:
georgestephanis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32359, comment 14

    initial v1  
    44
    55I'd far sooner see the subdomain logic done as `[a-z\d]{4,50}` -- alphanumeric, and between four and fifty characters, inclusive.  WPCOM subdomains also cannot contain dashes or underscores, so that regex should be much more accurate, unless you intended to also include things like `en.blog.wordpress.com` or the like.
     6
     7If you did want to include `en.blog` I'd suggest changing it to `[a-z\d\.]{4,50}` to include double subdomains.