Skip to content

Commit 71813c2

Browse files
author
Yannick Scherer
committed
allow empty comments. (closes #19)
1 parent 081610c commit 71813c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rewrite_clj/node/comment.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
(defn comment-node
2626
"Create node representing an EDN comment."
2727
[s]
28-
{:pre [(re-matches #"[^\r\n]+[\r\n]?" s)]}
28+
{:pre [(re-matches #"[^\r\n]*[\r\n]?" s)]}
2929
(->CommentNode s))
3030

3131
(defn comment?

0 commit comments

Comments
 (0)