Commit 106f79e1 authored by bensinober's avatar bensinober Committed by Benjamin
Browse files

DEICH-5736 : strip all quotes from autocomplete suggestions before searching

parent 41f10b56
......@@ -67,7 +67,8 @@ export default class Autocomplete extends React.Component {
onSelect(item, index) {
this.props.tracker.interaction();
const label = item.label.replace(/"(.+)"/g, '$1');
// DEICH-5736: strip all quotes from autocomplete suggestions so we don't end up in phrase search(es)
const label = item.label.replaceAll('"', "");
let selected = label;
if (item.typeLabel === "emne") {
selected = `emne:"${label}"`;
......
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