Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: impl/memory/info.go

Issue 1916463004: impl/memory: Disallow empty namespace. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: impl/memory/info.go
diff --git a/impl/memory/info.go b/impl/memory/info.go
index 432f70195ee82efab6f464cde55b466392c049af..a738b3c82c5d70e8db5248d9a6082988c4b20d0b 100644
--- a/impl/memory/info.go
+++ b/impl/memory/info.go
@@ -18,7 +18,7 @@ type giContextKeyType int
var giContextKey giContextKeyType
// validNamespace matches valid namespace names.
-var validNamespace = regexp.MustCompile(`^[0-9A-Za-z._-]{0,100}$`)
+var validNamespace = regexp.MustCompile(`^[0-9A-Za-z._-]{1,100}$`)
var defaultGlobalInfoData = globalInfoData{
// versionID returns X.Y where Y is autogenerated by appengine, and X is

Powered by Google App Engine
This is Rietveld 408576698