mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-04 23:12:18 +02:00
additional fix for wildcards
This commit is contained in:
parent
21993b36ee
commit
da2cfbde9c
|
@ -43,7 +43,7 @@ Regex!char wild2regex(const(char)[] pattern)
|
|||
{
|
||||
string str;
|
||||
str.reserve(pattern.length + 2);
|
||||
str ~= "(^|/)";
|
||||
str ~= "/";
|
||||
foreach (c; pattern) {
|
||||
switch (c) {
|
||||
case '*':
|
||||
|
@ -56,7 +56,7 @@ Regex!char wild2regex(const(char)[] pattern)
|
|||
str ~= "[^/]";
|
||||
break;
|
||||
case '|':
|
||||
str ~= "$|(^|/)";
|
||||
str ~= "$|/";
|
||||
break;
|
||||
default:
|
||||
str ~= c;
|
||||
|
|
Loading…
Reference in a new issue