Skip to content

Commit

Permalink
Merge pull request #778 from LiskHQ/750-stripwhitespaces
Browse files Browse the repository at this point in the history
Strip initial, traling and multiple white spaces of Passphrase - Closes #750
  • Loading branch information
reyraa committed May 2, 2018
2 parents 7ea9da4 + cd6cc5c commit 22ddc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/passphraseInput/index.js
Expand Up @@ -23,7 +23,7 @@ class PassphraseInput extends React.Component {
}

handleValueChange(index, value) {
let insertedValue = value;
let insertedValue = value.trim().replace(/\W+/g, ' ');
const insertedValueAsArray = insertedValue.split(' ');
let passphrase = this.props.value.split(' ');

Expand Down

0 comments on commit 22ddc38

Please sign in to comment.