Add '+' as a character to escape

* Add '+' as a character to escape when using the wild2regex function
This commit is contained in:
abraunegg 2018-06-28 13:46:20 +10:00
parent 63c5dd86b7
commit 6036283d20

View file

@ -95,6 +95,9 @@ Regex!char wild2regex(const(char)[] pattern)
case '|':
str ~= "$|^";
break;
case '+':
str ~= "\\+";
break;
default:
str ~= c;
break;