mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 20:14:57 +08:00
Restrict app slug validation to only allow lowercase letters (#2878)
This commit is contained in:
parent
37d8adb2dd
commit
2a4f298c32
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ defmodule Livebook.Notebook.AppSettings do
|
|||
:show_source,
|
||||
:output_type
|
||||
])
|
||||
|> validate_format(:slug, ~r/^[a-zA-Z0-9-]+$/,
|
||||
|> validate_format(:slug, ~r/^[a-z0-9-]+$/,
|
||||
message: "should only contain alphanumeric characters and dashes"
|
||||
)
|
||||
|> cast_access_attrs(attrs)
|
||||
|
|
Loading…
Add table
Reference in a new issue