Skip to content
This repository was archived by the owner on Dec 10, 2022. It is now read-only.

Commit e258e82

Browse files
committed
chore(node_config): remove check for braces
1 parent 751a81b commit e258e82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/node_config.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ fn app() -> App<'static, 'static> {
245245
- uptime: uptime in the format 'XX days XX hours XX minutes'\n")
246246
.takes_value(true)
247247
.validator(|m| {
248-
let template_regex = Regex::new(r"\{\{.*\}\}")
249-
.expect("Failed to compile template regex");
250-
if !template_regex.is_match(&m) && m.len() > BOOSTRAP_SERVER_MAX_MOTD_LENGTH {
248+
if m.len() > BOOSTRAP_SERVER_MAX_MOTD_LENGTH {
251249
Err(format!("Message of the day must not be longer than {} bytes", BOOSTRAP_SERVER_MAX_MOTD_LENGTH))
252250
} else {
253251
Ok(())

0 commit comments

Comments
 (0)