mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 05:25:47 +00:00
cli: require single quotes around names with commas (fixes names in bot parameters)
This commit is contained in:
@@ -4045,7 +4045,7 @@ chatCommandP =
|
||||
char_ = optional . A.char
|
||||
|
||||
displayNameP :: Parser Text
|
||||
displayNameP = safeDecodeUtf8 <$> (quoted '\'' <|> takeNameTill isSpace)
|
||||
displayNameP = safeDecodeUtf8 <$> (quoted '\'' <|> takeNameTill (\c -> isSpace c || c == ','))
|
||||
where
|
||||
takeNameTill p =
|
||||
A.peekChar' >>= \c ->
|
||||
|
||||
Reference in New Issue
Block a user