Mercurial Hosting > hghosting
changeset 23:7c9a45368af2 default tip
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 04 Oct 2024 12:06:16 -0600 |
parents | e65668ff8822 |
children | |
files | src/admin/add.html.luan src/admin/index.html.luan |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/admin/add.html.luan Sun Sep 15 08:21:43 2024 -0600 +++ b/src/admin/add.html.luan Fri Oct 04 12:06:16 2024 -0600 @@ -16,7 +16,7 @@ local function handle() local user = get_user() local repo_name = Http.request.parameters.repo or error() - name_regex.matches( repo_name ) or error "invalid regex name" + name_regex.matches( repo_name ) or error "invalid repo name" if repo_name=="_all" or repo_name=="_private" then return [[<p error>Invalid rep name</p>]] end
--- a/src/admin/index.html.luan Sun Sep 15 08:21:43 2024 -0600 +++ b/src/admin/index.html.luan Fri Oct 04 12:06:16 2024 -0600 @@ -47,7 +47,7 @@ <form action="add.html"> <p> <label prompt>Repo name</label> - <input type=text name=repo required pattern="[a-z0-9_][a-z0-9_-]*"> + <input type=text name=repo required pattern="[a-z0-9_][a-z0-9_\-]*"> <label prompt>Must match regex: [a-z0-9_][a-z0-9_-]*</label> </p> <p>