made more portable

This commit is contained in:
William Katz 2021-07-31 23:05:52 -07:00 committed by GitHub
parent 4914490b42
commit 7d26eb9341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#include "user_filter.h" #include "user_filter.h"
__attribute__((always_inline)) inline 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)
{ {