aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcache.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-18 09:37:29 +0200
committerDan Engelbrecht <[email protected]>2022-05-18 09:37:29 +0200
commit3f996c64b7ebc3fc39c2320c2d0a2a49496e2249 (patch)
tree3e9ce0f091348155e2103db04dec63960c140f2b /zenserver/cache/structuredcache.cpp
parentfix release build, misplaced namespace brackets (diff)
downloadzen-3f996c64b7ebc3fc39c2320c2d0a2a49496e2249.tar.xz
zen-3f996c64b7ebc3fc39c2320c2d0a2a49496e2249.zip
align bucket naming rules with UE code base
Diffstat (limited to 'zenserver/cache/structuredcache.cpp')
-rw-r--r--zenserver/cache/structuredcache.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/zenserver/cache/structuredcache.cpp b/zenserver/cache/structuredcache.cpp
index c457c59b2..bc6f31dd3 100644
--- a/zenserver/cache/structuredcache.cpp
+++ b/zenserver/cache/structuredcache.cpp
@@ -86,7 +86,8 @@ namespace {
std::optional<IoHash> ValueContentId;
};
- const char* ValidNameCharacters = "abcdefghijklmnopqrstuvwxyz0123456789-_.ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ const char* ValidNamespaceNameCharacters = "abcdefghijklmnopqrstuvwxyz0123456789-_.ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ const char* ValidBucketNameCharacters = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::optional<std::string> GetValidNamespaceName(std::string_view Name)
{
@@ -99,7 +100,7 @@ namespace {
return {};
}
- if (Name.find_first_not_of(ValidNameCharacters) != std::string::npos)
+ if (Name.find_first_not_of(ValidNamespaceNameCharacters) != std::string::npos)
{
return {};
}
@@ -112,7 +113,7 @@ namespace {
{
return {};
}
- if (Name.find_first_not_of(ValidNameCharacters) != std::string::npos)
+ if (Name.find_first_not_of(ValidBucketNameCharacters) != std::string::npos)
{
return {};
}