mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-29 09:55:35 +02:00
Fix previous fix
This commit is contained in:
parent
dc8932cd95
commit
f58c1e4c84
5 changed files with 38 additions and 43 deletions
cmd
|
@ -249,10 +249,6 @@ func parseTopicMessageCommand(c *cli.Context) (topic string, message string, com
|
|||
if c.String("message") != "" {
|
||||
message = c.String("message")
|
||||
}
|
||||
if !topicRegex.MatchString(topic) {
|
||||
err = fmt.Errorf("topic %s contains invalid characters", topic)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue