Skip to content

Commit

Permalink
Merge pull request #551 from broadinstitute/dh-trim-search-input
Browse files Browse the repository at this point in the history
Avoid invalid locus error for rsid inputs with leading spaces
  • Loading branch information
sagehen03 authored Oct 18, 2023
2 parents b3563a2 + 92c14f3 commit b8959e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/researchPortal/ResearchSingleSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default Vue.component("research-single-search", {
methods: {
onSearch() {
let searchKey = this.singleSearchParam.replace(/,/g, "");
let searchKey = this.singleSearchParam.replace(/,/g, "").trim();
if (
!!this.singleSearchParam.includes("rs") ||
!!this.singleSearchParam.includes(":")
Expand Down

0 comments on commit b8959e6

Please sign in to comment.