summaryrefslogtreecommitdiff
path: root/src/clarktown/matchers/quote_block.clj
blob: 230b561a5fffb00f9e898291753afef1fa955448 (plain)
1
2
3
4
5
6
7
8
9
10
11
(ns clarktown.matchers.quote-block
  (:require
    [clojure.string :as string]))


(defn match?
  "Determines whether the given block is a quote block."
  [block]
  (-> (string/replace block #"\n" "")
      string/trim
      (string/starts-with? ">")))