Skip to content

Commit

Permalink
Correctly handle whitespace when normalizing proxy user queries (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton authored Oct 16, 2023
1 parent 3ba5202 commit 30e6383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/workflow-basics-user-search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default class WorkflowBasicsUserSearch extends Component {
@task
searchForUsers = function* (page) {
// Strip out non-alphanumberic characters to ensure filter is valid
let input = this.args.searchInput.replace(/\W/g, '');
// Such characters in the middle of the string become a space
let input = this.args.searchInput.replace(/\W+/g, ' ').trim();

if (input.length == 0) {
return;
Expand Down

0 comments on commit 30e6383

Please sign in to comment.