fix(Add SSH Key): use multiline mode to validating textarea input (github #48)

fix github #48
This commit is contained in:
cubic
2022-03-11 11:08:43 +08:00
parent 31749ea12d
commit ffc4993cae

View File

@@ -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' }) }