Skip to content

Commit

Permalink
hotfix: fix allowed SMS text
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenCursor committed Aug 26, 2024
1 parent 3945d3f commit 4da297f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion args.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type (

SMSSendArgs struct {
PhoneNumber string `validate:"e164" arg:"-p,--phone,required" help:"Receiver's phone number"`
Message string `validate:"alphanum" arg:"-m,--msg,required" help:"Message to be sent"`
Message string `validate:"printascii" arg:"-m,--msg,required" help:"Message to be sent"`
}

SMSReadArgs struct {
Expand Down
1 change: 1 addition & 0 deletions mcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func run() error {
case args.SMS.Send != nil:
err := validate.Struct(args.SMS.Send)
if err != nil {
logger.With("err", err.Error()).Debug("sms send validation error")
parser.FailSubcommand("Unknown values or action", "sms")
}

Expand Down

0 comments on commit 4da297f

Please sign in to comment.