Reacting to globbing changes
This commit is contained in:
parent
e8043f92e5
commit
a2d58ba4ea
|
|
@ -142,10 +142,10 @@ namespace Microsoft.AspNet.Mvc.TagHelpers.Internal
|
|||
.OrderBy(path => path, DefaultPathComparer);
|
||||
}
|
||||
|
||||
private string ResolveMatchedPath(string matchedPath)
|
||||
private string ResolveMatchedPath(FilePatternMatch matchedPath)
|
||||
{
|
||||
// Resolve the path to site root
|
||||
var relativePath = new PathString("/" + matchedPath);
|
||||
var relativePath = new PathString("/" + matchedPath.Path);
|
||||
return RequestPathBase.Add(relativePath).ToString();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -520,7 +520,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers.Internal
|
|||
excludePatterns.Add(pattern);
|
||||
return matcher.Object;
|
||||
});
|
||||
var patternMatchingResult = new PatternMatchingResult(Enumerable.Empty<string>());
|
||||
var patternMatchingResult = new PatternMatchingResult(Enumerable.Empty<FilePatternMatch>());
|
||||
matcher.Setup(m => m.Execute(It.IsAny<DirectoryInfoBase>())).Returns(patternMatchingResult);
|
||||
return matcher.Object;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue