Skip to content

Commit d72abbd

Browse files
committed
added more debug logs
1 parent d12aade commit d72abbd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

LinkRouter/App/Configuration/Config.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ public void CompileRoutes()
5555

5656
var escaped = Regex.Escape(route.Route);
5757

58-
var pattern = new Regex(@"\\{(\d|\w+)\}");
58+
Console.WriteLine(escaped);
59+
60+
var pattern = new Regex(@"\\\{(\d|\w+)\}");
5961

6062
var matches = pattern.Matches(escaped);
6163

64+
Console.WriteLine(matches.Count + " matches found.");
65+
6266
foreach (var match in matches.Select(x => x))
6367
{
6468
// Check if the placeholder is immediately followed by another placeholder

0 commit comments

Comments
 (0)