fix(xo-web/remotes): simplify SMB host inputs patterns

This commit is contained in:
Pierre Donias
2019-12-16 11:18:17 +01:00
parent 920def30d7
commit b6e99ce4a6

View File

@@ -242,7 +242,7 @@ export default decorate([
className='form-control'
name='host'
onChange={effects.linkState}
pattern='^([^\\/]+)\\([^\\/]+)$'
pattern='^[^\\/]+\\[^\\/]+$'
placeholder={formatMessage(
messages.remoteSmbPlaceHolderAddressShare
)}
@@ -255,7 +255,7 @@ export default decorate([
className='form-control'
name='path'
onChange={effects.linkState}
pattern='^(([^\\/]+)+(\\[^\\/]+)*)?$'
pattern='^([^\\/]+(\\[^\\/]+)*)?$'
placeholder={formatMessage(
messages.remoteSmbPlaceHolderRemotePath
)}