🐛 fixed last commit

This commit is contained in:
EntireTwix 2021-08-11 17:10:05 -07:00
parent ae7f3e7cfa
commit 5114e19737
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#include "json_filter.h" #include "json_filter.h"
constexpr bool Contains(std::string_view str, const std::string &val) inline bool Contains(std::string_view str, const std::string &val)
{ {
return str.find(val) != std::string::npos; return str.find(val) != std::string::npos;
} }

View file

@ -1,6 +1,6 @@
#include "user_filter.h" #include "user_filter.h"
constexpr bool ValidUsername(const std::string &name) noexcept inline bool ValidUsername(const std::string &name) noexcept
{ {
if (name.size() < min_name_size || name.size() > max_name_size) if (name.size() < min_name_size || name.size() > max_name_size)
{ {