Commit 75f9a7e2 authored by Anatoliy Potapchuk's avatar Anatoliy Potapchuk Committed by Commit Bot

Fix hostname validating regex for one letter subdomains

Bug: 981200
Change-Id: I910ba2d30e92c6a3605fb3bac98618d0491a5859
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730903Reviewed-by: default avatarLutz Justen <ljusten@chromium.org>
Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
Commit-Queue: Pavol Marko <pmarko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683615}
parent 5e7f46ab
...@@ -43,7 +43,7 @@ namespace em = enterprise_management; ...@@ -43,7 +43,7 @@ namespace em = enterprise_management;
namespace policy { namespace policy {
// A pattern for validating hostnames. // A pattern for validating hostnames.
const char hostNameRegex[] = "^([A-z0-9][A-z0-9-]+\\.)+[A-z0-9]+$"; const char hostNameRegex[] = "^([A-z0-9][A-z0-9-]*\\.)+[A-z0-9]+$";
namespace { namespace {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment