Skip to content

Commit

Permalink
modules/dsv (dsv-string->scm): Add "validate?" option
Browse files Browse the repository at this point in the history
* modules/dsv.scm (dsv-string->scm): Add "validate?" option.
  • Loading branch information
artyom-poptsov committed Nov 25, 2023
1 parent b69ee87 commit a55fb98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dsv.scm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ values, or throw 'dsv-parser-error' on an error."
#:key
(format 'unix)
(comment-prefix 'default)
(validate? #f)
(debug-mode? #f)
(log-driver #f)
(log-opt '()))
Expand All @@ -132,10 +133,12 @@ commented with a COMMENT-PREFIX. Return a list of values, or throw
(unix:dsv-string->scm str
#:delimiter delimiter
#:comment-prefix comment-prefix
#:validate? validate?
#:debug-mode? debug-mode?))
((rfc4180)
(rfc4180:dsv-string->scm str
#:delimiter delimiter
#:validate? validate?
#:debug-mode? debug-mode?))
(else
(dsv-error "Unknown format" format))))
Expand Down

0 comments on commit a55fb98

Please sign in to comment.