Convert spaces in card aliases to underscores.

This commit is contained in:
Dominik Pantůček 2023-03-24 22:07:59 +01:00
parent 09a583c565
commit dd1ab494af

View file

@ -35,6 +35,7 @@
(chicken base)
(chicken sort)
(chicken format)
(chicken irregex)
dictionary
members-base
member-record)
@ -69,7 +70,9 @@
(cardname (sprintf "~A~A~A"
nick
(if aliased? "." "")
(if aliased? calias ""))))
(if aliased?
(irregex-replace/all (irregex " " 'u) calias "_")
""))))
(print cardname " " cardid)
(cloop (cdr cards)))))
(uloop (cdr srecs)))))))