Update Scriban.Signed to version 5.5.0 (#777)

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

View File

@@ -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)
{