Enforce that channels names must start with /

Fixes: #5
Change-Id: I663e7c0802b750e93e904a8d4edaa1f2bd5d0959
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/configuration.cc b/aos/configuration.cc
index 46e84f5..4e1316d 100644
--- a/aos/configuration.cc
+++ b/aos/configuration.cc
@@ -338,6 +338,9 @@
       if (c->name()->string_view().back() == '/') {
         LOG(FATAL) << "Channel names can't end with '/'";
       }
+      if (c->name()->string_view().front() != '/') {
+        LOG(FATAL) << "Channel names must start with '/'";
+      }
       if (c->name()->string_view().find("//") != std::string_view::npos) {
         LOG(FATAL) << ": Invalid channel name " << c->name()->string_view()
                    << ", can't use //.";