From 62f8722085c4ed0e0ad8ae661ebd33e0fa50437e Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Thu, 20 Oct 2016 01:39:07 -0400
Subject: [PATCH] remove escapes from commas in search results

---
 pd/nw/dialog_search.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pd/nw/dialog_search.html b/pd/nw/dialog_search.html
index 011a4478d..ce91076e0 100644
--- a/pd/nw/dialog_search.html
+++ b/pd/nw/dialog_search.html
@@ -78,6 +78,8 @@ function add_doc_to_index(filename, data) {
             .match(/#X text \-?[0-9]+ \-?[0-9]+ DESCRIPTION ([\s\S]*?);/i);
         keywords = keywords && keywords.length > 1 ? keywords[1].trim() : null;
         desc = desc && desc.length > 1 ? desc[1].trim() : null;
+        // Remove the Pd escapes for commas
+        desc = desc ? desc.replace(" \\,", ",") : null;
         if (desc) {
             // format Pd's "comma atoms" as normal commas
             desc = desc.replace(" \\,", ",");
-- 
GitLab