diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-20 16:46:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-20 16:46:53 +0000 |
commit | cc034fe0c31f271275b9ab7f4048990519206018 (patch) | |
tree | 5965d7daa6ec009a391f512fe386a4156843c5a4 | |
parent | Merge pull request #6841 (diff) | |
download | monero-cc034fe0c31f271275b9ab7f4048990519206018.tar.xz |
util: fix escaping more than one ?* in glob_to_regex
-rw-r--r-- | src/common/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.cpp b/src/common/util.cpp index 433cb4919..f8707d65c 100644 --- a/src/common/util.cpp +++ b/src/common/util.cpp @@ -1000,13 +1000,13 @@ std::string get_nix_version_display_string() for (char c: val) { if (c == '*') - newval += escape ? "*" : ".*"; + newval += escape ? "*" : ".*", escape = false; else if (c == '?') - newval += escape ? "?" : "."; + newval += escape ? "?" : ".", escape = false; else if (c == '\\') newval += '\\', escape = !escape; else - newval += c; + newval += c, escape = false; } return newval; } |