1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

Support spaces in 4 word codes

Since the code was extended by the 4 digit block, the patch from https://github.com/schollz/croc/pull/198 did not work anymore.
This commit is contained in:
a1lu 2024-03-30 22:58:16 +01:00 committed by GitHub
parent d2b7c80369
commit 618ae1e5d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,6 +435,8 @@ func receive(c *cli.Context) (err error) {
case 1:
crocOptions.SharedSecret = c.Args().First()
case 3:
fallthrough
case 4:
var phrase []string
phrase = append(phrase, c.Args().First())
phrase = append(phrase, c.Args().Tail()...)