Skip to content

Commit

Permalink
fix: asciidoc yaml parsing
Browse files Browse the repository at this point in the history
Fixes the issue as described in #192
by checking the triple dash to be prefixed by either the start of the document,
or the start of a new line. This does still allow for some content before the
actual yaml.
  • Loading branch information
nicorikken committed Aug 28, 2017
1 parent 6965b26 commit 35e1b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/perun/yaml.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(:import [flatland.ordered.map OrderedMap]
[flatland.ordered.set OrderedSet]))

(def ^:dynamic *yaml-head* #"---\r?\n")
(def ^:dynamic *yaml-head* #"(?:^|\n)---\r?\n")

(defn substr-between
"Find string that is nested in between two strings. Return first match.
Expand Down

0 comments on commit 35e1b1d

Please sign in to comment.