/usr/share/racket/collects/setup/collection-name.rkt is in racket-common 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #lang racket/base
(provide collection-name?
collection-name-element?)
(define (collection-name? name)
(and (string? name)
(andmap collection-name-element? (regexp-split #rx"/" name))))
(define (collection-name-element? name)
(and (string? name)
(regexp-match #rx"^[a-zA-Z0-9+_%-]+$" name)
;; Using `module-path?' checks that "%" is used apprrpriately:
(module-path? name)))
|