Skip to content

Commit

Permalink
Fix side panel entity search with hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy committed Jul 3, 2020
1 parent c7566cd commit af0afb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export default {
let q = '';
if (keyword === '') {
q = '*';
} else if (keyword.match(/[|~*+\-"]/)) {
} else if (keyword.match(/[|~*+"]/) || keyword.match(/^-| -/)) {
// User is using operators, accept their keyword as-is
q = keyword;
} else {
Expand Down

0 comments on commit af0afb7

Please sign in to comment.