Skip to content

Commit

Permalink
trim space in url before executed
Browse files Browse the repository at this point in the history
  • Loading branch information
ezkemboi committed Feb 2, 2021
1 parent 4542cbe commit 147364c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/views/query-runner/QueryRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export class QueryRunner extends Component<
}

if (actions) {
// remove whitespaces
sampleQuery.sampleUrl = sampleQuery.sampleUrl.replace(/\s+/g, '');
actions.runQuery(sampleQuery);
const sanitizedUrl = sanitizeQueryUrl(sampleQuery.sampleUrl);
telemetry.trackEvent(eventTypes.BUTTON_CLICK_EVENT,
Expand Down

0 comments on commit 147364c

Please sign in to comment.