Unverified Commit 4d951c94 authored by stuart nelson's avatar stuart nelson Committed by GitHub

Parse labels with single quotes (#1129)

The regex was only stripping double quotes, it
should also support singles.
Signed-off-by: 's avatarstuart nelson <stuartnelson3@gmail.com>
parent f646c66b
......@@ -26,7 +26,7 @@ var tooltip = d3.select("body")
.style("visibility", "hidden");
function parseSearch(searchString) {
var labels = searchString.replace(/{|}|\"|\s/g, "").split(",");
var labels = searchString.replace(/{|}|\"|\'|\s/g, "").split(",");
var o = {};
labels.forEach(function(label) {
var l = label.split("=");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment