fix bug related to line endings
This commit is contained in:
3
gem300.rkt
Normal file → Executable file
3
gem300.rkt
Normal file → Executable file
@@ -20,7 +20,8 @@
|
||||
(λ (exn)
|
||||
(displayln (exn-message exn)))])
|
||||
|
||||
(match (regexp-match #px"(\\w+)\\s*(.*)" (read-line))
|
||||
(match (regexp-match #px"(\\w+)\\s*(.*)"
|
||||
(read-line (current-input-port) 'any))
|
||||
[(or (list _ "go" url)
|
||||
(list _ "g" url))
|
||||
(send client go-cmd url)]
|
||||
|
Reference in New Issue
Block a user