Commit 5181714f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't include newlines in searches

BUG: 414530
parent b653ed82
......@@ -41,7 +41,9 @@ Kirigami.ActionTextField
placeholderText: (!enabled || !page || page.hasOwnProperty("isHome") || page.title.length === 0) ? i18n("Search...") : i18n("Search in '%1'...", window.leftPage.title)
onAccepted: {
currentSearchText = text
searchField.text = searchField.text.replace(/\n/g, ' ');
console.log("searchField.text", searchField.text)
currentSearchText = searchField.text
}
function clearText() {
......
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