Verified Commit a1b7159e authored by Camil Staps's avatar Camil Staps 🐾

highlightQuery: don't highlight queries with spaces and no ::

parent d9bf28f4
......@@ -118,6 +118,8 @@ function highlightQuery(query) {
'</span><span class="punctuation">::</span>' +
highlightType(q.substring(q.indexOf('::') + 2));
};
} else if (query.match(/\s/) && query.indexOf('::') < 0) {
return '<span>' + query + '</span>';
}
return highlighter(query);
}
......
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