mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-13 03:12:37 +02:00
Add '+' as a character to escape
* Add '+' as a character to escape when using the wild2regex function
This commit is contained in:
parent
63c5dd86b7
commit
6036283d20
|
@ -95,6 +95,9 @@ Regex!char wild2regex(const(char)[] pattern)
|
||||||
case '|':
|
case '|':
|
||||||
str ~= "$|^";
|
str ~= "$|^";
|
||||||
break;
|
break;
|
||||||
|
case '+':
|
||||||
|
str ~= "\\+";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
str ~= c;
|
str ~= c;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue