Update Scriban.Signed to version 5.5.0 (#777)

This commit is contained in:
Stef Heyenrath authored and GitHub committed 2022-07-29 13:18:23 +02:00
1 parent 968aa598e2
commit ae91ed2a79
4 files changed
+33 -18

No files matched your search

@@ -41,7 +41,7 @@ public class CustomPathParamMatcher : IStringMatcher
MatchOperator = matchOperator;
}
public double IsMatch(string input)
public double IsMatch(string? input)
{
var inputParts = GetPathParts(input);
if (inputParts.Length != _pathParts.Length)
@@ -97,8 +97,13 @@ public class CustomPathParamMatcher : IStringMatcher
public MatchOperator MatchOperator { get; }
private static string[] GetPathParts(string path)
private static string[] GetPathParts(string? path)
{
if (path is null)
{
return new string[0];
}
var hashMarkIndex = path.IndexOf('#');
if (hashMarkIndex != -1)
{