mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-10 01:36:39 +02:00
Escape parentheses from path or file names (#841)
* Escape parentheses from path or file names, when doing comparison with regex With thanks to @GeorgeKalovyrnas
This commit is contained in:
parent
7170498a95
commit
caf51886cf
|
@ -107,6 +107,12 @@ Regex!char wild2regex(const(char)[] pattern)
|
|||
case '/':
|
||||
str ~= "\\/";
|
||||
break;
|
||||
case '(':
|
||||
str ~= "\\(";
|
||||
break;
|
||||
case ')':
|
||||
str ~= "\\)";
|
||||
break;
|
||||
default:
|
||||
str ~= c;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue