aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/spectrum.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/spectrum.rs b/rust/spectrum.rs
index 85d18b6..be41ca8 100644
--- a/rust/spectrum.rs
+++ b/rust/spectrum.rs
@@ -67,7 +67,7 @@ fn is_valid_identifier(s: &str) -> bool {
return false;
}
for (i, c) in s.chars().enumerate() {
- if !(c.is_alphabetic() || c == '-' || (c.is_numeric() && i > 0)) {
+ if !(c.is_alphabetic() || c == '*' || c == '?' || c == '!' || c == '-' || (c.is_numeric() && i > 0)) {
return false;
}
}