From da2cfbde9c719833f49a0eaa65f3692375de363f Mon Sep 17 00:00:00 2001 From: skilion Date: Tue, 22 Sep 2015 11:16:06 +0200 Subject: [PATCH] additional fix for wildcards --- src/util.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.d b/src/util.d index d9dc881f..1843bd8e 100644 --- a/src/util.d +++ b/src/util.d @@ -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;