mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
Merge remote-tracking branch 'pret/master' into RHH/pr/sync/pretmerge_20221030
This commit is contained in:
commit
fbc71b3686
@ -107,7 +107,7 @@ int main(int argc, char *argv[])
|
|||||||
env.add_callback("cleanString", 1, [](Arguments& args) {
|
env.add_callback("cleanString", 1, [](Arguments& args) {
|
||||||
string badChars = ".'{} \n\t-\u00e9";
|
string badChars = ".'{} \n\t-\u00e9";
|
||||||
string str = args.at(0)->get<string>();
|
string str = args.at(0)->get<string>();
|
||||||
for (uint i = 0; i < str.length(); i++) {
|
for (unsigned int i = 0; i < str.length(); i++) {
|
||||||
if (badChars.find(str[i]) != std::string::npos) {
|
if (badChars.find(str[i]) != std::string::npos) {
|
||||||
str[i] = '_';
|
str[i] = '_';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user