From 5bd034d08efbc8b8a47ac2dca4abe76bacc984f5 Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Sun, 17 Dec 2023 14:57:02 -0800 Subject: [PATCH] Workaround for #1897 --- modules/core/src/main/scala/dev/guardrail/Common.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/src/main/scala/dev/guardrail/Common.scala b/modules/core/src/main/scala/dev/guardrail/Common.scala index 5a41f877a5..ef542d469a 100644 --- a/modules/core/src/main/scala/dev/guardrail/Common.scala +++ b/modules/core/src/main/scala/dev/guardrail/Common.scala @@ -49,6 +49,7 @@ object Common { server .downField("url", _.getUrl) .unwrapTracker + .filterNot(_.contains("{")) .map { x => val uri = new URI(x.iterateWhileM[Id](_.stripSuffix("/"))(_.endsWith("/"))) @SuppressWarnings(Array("org.wartremover.warts.Null"))