Browse Source

frontend_common: config: Do not count "." as a special character

It would break reading floating point settings
nce_cpp
t895 2 years ago
parent
commit
64b8fd0036
  1. 5
      src/frontend_common/config.h

5
src/frontend_common/config.h

@ -213,9 +213,8 @@ private:
const std::optional<bool>& use_global);
void WriteString(const std::string& key, const std::string& value);
inline static std::array<char, 19> special_characters = {'!', '#', '$', '%', '^', '&', '*',
'|', ';', '\'', '\"', ',', '<', '.',
'>', '?', '`', '~', '='};
inline static std::array<char, 18> special_characters = {
'!', '#', '$', '%', '^', '&', '*', '|', ';', '\'', '\"', ',', '<', '>', '?', '`', '~', '='};
struct ConfigArray {
std::string name;

Loading…
Cancel
Save