From 5fb6e04a13f4dc673bcfea2b75fde6e8690d3607 Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Sat, 11 Jan 2025 12:02:38 +0900 Subject: [PATCH] Make examples file naming friendlier to Windows --- content/api/gen-docs.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/api/gen-docs.janet b/content/api/gen-docs.janet index d80122e..19690ed 100644 --- a/content/api/gen-docs.janet +++ b/content/api/gen-docs.janet @@ -11,7 +11,7 @@ (set ret (string/replace " " " " ret))) ret) -(def- replacer (peg/compile ~(% (any (+ (/ '(set "/*%") ,|(string "_" (0 $))) '1))))) +(def- replacer (peg/compile ~(% (any (+ (/ '(set "%*/:<>?") ,|(string "_" (0 $))) '1))))) (defn- sym-to-filename "Convert a symbol to a filename. Certain filenames are not allowed on various operating systems." [fname]