mirror of
https://github.com/brufdev/many-notes.git
synced 2026-05-21 09:58:33 -05:00
Increase list of allowed characters for vault and node names
This commit is contained in:
@@ -32,7 +32,7 @@ final class VaultForm extends Form
|
||||
'name' => [
|
||||
'required',
|
||||
'min:3',
|
||||
'regex:/^[\w]+[\s\w.-]+$/u',
|
||||
'regex:/^[\w]+[\s\w._\-\&\%\#\[\]\(\)]+$/u',
|
||||
Rule::unique(Vault::class)
|
||||
->where('created_by', $currentUser->id)
|
||||
->ignore($this->vault),
|
||||
|
||||
@@ -41,7 +41,7 @@ final class VaultNodeForm extends Form
|
||||
'name' => [
|
||||
'required',
|
||||
'min:3',
|
||||
'regex:/^[\w]+[\s\w\&.-]+$/u',
|
||||
'regex:/^[\w]+[\s\w._\-\&\%\#\[\]\(\)]+$/u',
|
||||
Rule::unique(VaultNode::class)
|
||||
->where('vault_id', $this->vault->id)
|
||||
->where('parent_id', $this->parent_id)
|
||||
|
||||
Reference in New Issue
Block a user