Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
fix: asciidoc yaml parsing
Browse files Browse the repository at this point in the history
Fixes the issue as described in hashobject#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 29, 2017
1 parent 6965b26 commit 988bd41
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 988bd41

Please sign in to comment.