summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/check.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dev/check.rs b/src/dev/check.rs
index 4c5e072..a6db3c2 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -14,9 +14,11 @@ use crate::{
collections::{hash_set_with_capacity, HashSet},
exercise::{RunnableExercise, OUTPUT_CAPACITY},
info_file::{ExerciseInfo, InfoFile},
- CURRENT_FORMAT_VERSION, MAX_EXERCISE_NAME_LEN,
+ CURRENT_FORMAT_VERSION,
};
+const MAX_EXERCISE_NAME_LEN: usize = 32;
+
// Find a char that isn't allowed in the exercise's `name` or `dir`.
fn forbidden_char(input: &str) -> Option<char> {
input.chars().find(|c| !c.is_alphanumeric() && *c != '_')