Repair detection of "easily-printable" symbols
This commit is contained in:
parent
e894d0dbbc
commit
c27aa7579e
|
@ -155,7 +155,7 @@
|
|||
[(? symbol?)
|
||||
(define s (symbol->string v))
|
||||
;; FIXME: This regular expression is conservatively correct, but Anglo-chauvinistic.
|
||||
(if (regexp-match #px"[a-zA-Z~!$%^&*?_=+/.][-a-zA-Z~!$%^&*?_=+/.0-9]*" s)
|
||||
(if (regexp-match #px"^[a-zA-Z~!$%^&*?_=+/.][-a-zA-Z~!$%^&*?_=+/.0-9]*$" s)
|
||||
(! "~a" s)
|
||||
(begin (! "|")
|
||||
(for [(c (in-string s))]
|
||||
|
|
Loading…
Reference in New Issue