cs: fix check for escaping procedure name

This commit is contained in:
Matthew Flatt 2019-12-18 06:42:33 -07:00
parent c61dc30560
commit a135a868a8

View File

@ -12,8 +12,8 @@
(cond
[(and (fx> (string-length s) 0)
(let ([ch (string-ref s 0)])
(or (char=? #\[)
(char=? #\]))))
(or (char=? #\[ ch)
(char=? #\] ch))))
;; Symbolic name starts with "[" or "]". To avoid confusing
;; it with a path or "no name" encoding, add an extra
;; "]" to be stripped away.