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:
GeorgeKalovyrnas 2020-03-27 22:49:33 +02:00 committed by GitHub
parent 7170498a95
commit caf51886cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,12 @@ Regex!char wild2regex(const(char)[] pattern)
case '/':
str ~= "\\/";
break;
case '(':
str ~= "\\(";
break;
case ')':
str ~= "\\)";
break;
default:
str ~= c;
break;