We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52dec9e + 4bd8d30 commit e87e2c2Copy full SHA for e87e2c2
1 file changed
ntfy-daemon/src/models.rs
@@ -18,7 +18,7 @@ fn emoji_map() -> &'static HashMap<String, String> {
18
}
19
20
pub fn validate_topic(topic: &str) -> Result<&str, Error> {
21
- let re = Regex::new(r"^\w+$").unwrap();
+ let re = Regex::new(r"^[\w\-]+$").unwrap();
22
if re.is_match(topic) {
23
Ok(topic)
24
} else {
0 commit comments