Skip to content

Commit

Permalink
Strip trailing and leading whitespace from uri
Browse files Browse the repository at this point in the history
  • Loading branch information
macevhicz authored and MHendricks committed Sep 11, 2024
1 parent 0ba8a73 commit c0c277e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hab_gui/widgets/uri_combobox.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def refresh(self):
self.set_uri(current)

def uri(self):
return self.currentText()
return self.currentText().strip()

def set_uri(self, uri):
# If the uri is already an item in the combo box, select it
Expand Down
2 changes: 1 addition & 1 deletion hab_gui/widgets/uri_line_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def refresh(self):
pass

def uri(self):
return self.text()
return self.text().strip()

def set_uri(self, uri):
self.setText(uri)

0 comments on commit c0c277e

Please sign in to comment.