summaryrefslogtreecommitdiff
path: root/src/clarktown/matchers/horizontal_line_block.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/clarktown/matchers/horizontal_line_block.clj')
-rw-r--r--src/clarktown/matchers/horizontal_line_block.clj10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/clarktown/matchers/horizontal_line_block.clj b/src/clarktown/matchers/horizontal_line_block.clj
new file mode 100644
index 0000000..a2dde6e
--- /dev/null
+++ b/src/clarktown/matchers/horizontal_line_block.clj
@@ -0,0 +1,10 @@
+(ns clarktown.matchers.horizontal-line-block
+ (:require
+ [clojure.string :as string]))
+
+
+(defn match?
+ "Determines whether the given block is a horizontal line block."
+ [block]
+ (or (= "***" (string/trim block))
+ (= "---" (string/trim block)))) \ No newline at end of file