Update wild2regex to support spaces and back slash

* Update wild2regex to support spaces and back slash
This commit is contained in:
abraunegg 2018-07-10 11:09:15 +10:00
parent 9e971410ee
commit 57106a7b88

View file

@ -99,7 +99,13 @@ Regex!char wild2regex(const(char)[] pattern)
break;
case '+':
str ~= "\\+";
break;
case ' ':
str ~= "\\s+";
break;
case '/':
str ~= "\\/";
break;
default:
str ~= c;
break;