mirror of
https://github.com/PGYER/codefever.git
synced 2026-06-02 07:01:29 +08:00
fix(Add SSH Key): use multiline mode to validating textarea input (github #48)
fix github #48
This commit is contained in:
@@ -58,7 +58,7 @@ class UserSettingSSHKey extends React.Component {
|
||||
this.checkInput = ValidatorGenerator.stateValidator(this, [
|
||||
{
|
||||
name: 'key',
|
||||
passPattern: /^.+$/,
|
||||
passPattern: /^.+$/m,
|
||||
errorMessage: this.props.intl.formatMessage(
|
||||
{ id: 'message.error._S_empty' },
|
||||
{ s: this.props.intl.formatMessage({ id: 'label.SSHKey' }) }
|
||||
|
||||
Reference in New Issue
Block a user