We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e87e2c2 commit 80154caCopy full SHA for 80154ca
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\-]{1,64}$").unwrap();
22
if re.is_match(topic) {
23
Ok(topic)
24
} else {
0 commit comments