Support '.' in sections and fields
This commit is contained in:
4
main.rkt
4
main.rkt
@@ -84,8 +84,8 @@
|
||||
(define (file->ini file*)
|
||||
(let* ((file (get-ini-file file*))
|
||||
(lines (if (file-exists? file) (file->lines file) '()))
|
||||
(re-section #px"^\\[([a-zA-Z0-9_-.]+)\\]$")
|
||||
(re-keyval #px"^([a-zA-Z0-9_-.]+)[=](.*)$")
|
||||
(re-section #px"^\\[([a-zA-Z0-9_.-]+)\\]$")
|
||||
(re-keyval #px"^([a-zA-Z0-9_.-]+)[=](.*)$")
|
||||
(re-comment #px"^[;](.*)$"))
|
||||
(letrec ((f (lambda (sections section lines)
|
||||
(if (null? lines)
|
||||
|
||||
Reference in New Issue
Block a user