We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1177142 commit a1df9c5Copy full SHA for a1df9c5
src/rime/config/config_data.cc
@@ -2,6 +2,8 @@
2
// Copyright RIME Developers
3
// Distributed under the BSD License
4
//
5
+#include <cctype>
6
+#include <cstdlib>
7
#include <fstream>
8
#include <boost/algorithm/string.hpp>
9
#include <boost/filesystem.hpp>
@@ -87,7 +89,7 @@ bool ConfigData::SaveToFile(const string& file_name) {
87
89
}
88
90
91
bool ConfigData::IsListItemReference(const string& key) {
- return !key.empty() && key[0] == '@';
92
+ return key.length() > 1 && key[0] == '@' && std::isalnum(key[1]);
93
94
95
string ConfigData::FormatListIndex(size_t index) {
0 commit comments