Add trim functionality to source form

pull/504/head
Will Piers 2016-11-11 11:15:35 -08:00
parent 10b18e579d
commit dbd333a0fb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export const SourceForm = React.createClass({
e.preventDefault();
const {router, params, addFlashMessage} = this.props;
const newSource = Object.assign({}, this.state.source, {
url: this.sourceURL.value,
url: this.sourceURL.value.trim(),
name: this.sourceName.value,
username: this.sourceUsername.value,
password: this.sourcePassword.value,