Skip to content

Commit

Permalink
fix(server): require app names to start with a letter
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Sep 14, 2024
1 parent facd274 commit 4182a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::{
};

lazy_static! {
static ref NAME_RE: Regex = Regex::new(r"\A[a-z0-9-_]+\z").unwrap();
static ref NAME_RE: Regex = Regex::new(r"\A[a-z][a-z0-9-_]*\z").unwrap();
static ref DEFAULT_CFG: parsed::Config = {
let mut v: parsed::Config = toml::from_str(include_str!("../../mmserver.default.toml")).unwrap();
if let Some(ref mut apps) = &mut v.apps {
Expand Down

0 comments on commit 4182a50

Please sign in to comment.