From 9292de63336da42651c646253ef6000621d5328b Mon Sep 17 00:00:00 2001
From: Blake Allen <blakesnake100@gmail.com>
Date: Tue, 26 Oct 2021 23:58:08 +0000
Subject: [PATCH] remove unnecessary regex, use encodeuri for label instead of replace

---
 layouts/partials/graph.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index d10c7f5..d529e8d 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -184,7 +184,7 @@
   const labels = graphNode.append("text")
     .attr("dx", 12)
     .attr("dy", ".35em")
-    .text((d) => d.id.replace("%20", " "))
+    .text((d) => encodeURI(d.id))
     .style("opacity", 0)
     .style("pointer-events", "none")
     .call(drag(simulation));

--
Gitblit v1.10.0