mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 11:23:26 +01:00
util: fix escaping more than one ?* in glob_to_regex
This commit is contained in:
parent
3cbb44a2fd
commit
cc034fe0c3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user