about summary refs log tree commit diff
path: root/web/gn-uri.scm
diff options
context:
space:
mode:
authorPjotr Prins2023-08-27 11:24:08 +0200
committerPjotr Prins2023-08-27 11:24:08 +0200
commit2a8ae48a36cc88105c9a4c056132c9a47e2f120a (patch)
treee89080e0c5b9f614e2035686d0898cadba2a8dc2 /web/gn-uri.scm
parentafbbd86f316c2bfa70b86c1c51a4147a83f285ec (diff)
downloadgn-guile-2a8ae48a36cc88105c9a4c056132c9a47e2f120a.tar.gz
Shortnames
Diffstat (limited to 'web/gn-uri.scm')
-rw-r--r--web/gn-uri.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/gn-uri.scm b/web/gn-uri.scm
index f275bcd..5d95cd8 100644
--- a/web/gn-uri.scm
+++ b/web/gn-uri.scm
@@ -22,11 +22,12 @@
             ))
 
 
-
 (define (normalize-id str)
   ;; (string-replace-substring (string-downcase str) " " "_")
-  (string-replace-substring str " " "_")
-  )
+  (match str
+    (#f "unknown")
+    (_ (string-replace-substring str " " "_"))
+  ))
 
 (define (url-parse-id uri)
   (if uri