Skip to content
Snippets Groups Projects
Commit 50f7b5c0 authored by schneider210's avatar schneider210
Browse files

fix: remove word boundary for whitespace

parent 10388eb2
No related branches found
No related tags found
1 merge request!56no-search-result
Pipeline #220021 passed
......@@ -7,7 +7,7 @@
elevation="2"
>
<!-- TODO: provide translation -->
<span v-if="validQuery">Please enter a valid search term.</span>
<span v-if="invalid">Please enter a valid search term.</span>
<span v-else>No search results found for <code>{{ query }}</code></span>
</v-alert>
</div>
......@@ -22,8 +22,8 @@ export default {
},
},
computed: {
validQuery() {
return !this.query.match(/\b\s*\b/);
invalid() {
return this.query.match(/^\s*$/);
},
},
};
......
......@@ -4,10 +4,10 @@
v-if="items.length > 0"
subheader
two-line
>
>
<v-list-item v-for="item in items" :key="item.item" class="pl-0">
<v-list-item-content>
<a :href="getItemUrl(item)" target="_blank">
<a :href="getItemUrl(item)">
<v-list-item-title>{{ item.label }}</v-list-item-title>
<v-list-item-subtitle class="d-flex">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment