From 9a424db462d3fb19bc985f0b3dec84ef1f59a347 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Mon, 24 Jun 2019 14:06:00 -0700 Subject: [PATCH] pathmatch.Pattern.String() --- compile.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compile.go b/compile.go index 8e7fca5..c254c8d 100644 --- a/compile.go +++ b/compile.go @@ -67,6 +67,8 @@ func CompileTo(target *Pattern, uncompiledPattern string) error { target.init(defaultFieldTagName) + target.template = uncompiledPattern + s := uncompiledPattern for { index := strings.IndexRune(s, '{')