mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-01 13:32:22 +02:00
fix: regex multiline for textarea
This commit is contained in:
parent
db42d89dd6
commit
81191c9609
|
@ -188,7 +188,7 @@ export default function AppriseAlertSettings() {
|
||||||
//defaultValue={appriseURLs}
|
//defaultValue={appriseURLs}
|
||||||
{...register('appriseURLs', {
|
{...register('appriseURLs', {
|
||||||
pattern: {
|
pattern: {
|
||||||
value: /.*:\/\/.*/,
|
value: /^.+:\/\/.+$/gm,
|
||||||
message: 'Invalid URLs format.',
|
message: 'Invalid URLs format.',
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in a new issue