Minor tidy-up
This commit is contained in:
parent
91310af2d8
commit
b197368c66
3 changed files with 7 additions and 48 deletions
|
|
@ -30,7 +30,7 @@
|
|||
"Compile each non-comment line of this `string` into an executable anonymous
|
||||
function, and return the sequence of such functions."
|
||||
[string]
|
||||
(map #(compile-rule % true) (remove comment? (trim (split string #"\n")))))
|
||||
(map #(compile-rule % true) (remove comment? (split string #"\n"))))
|
||||
|
||||
(defn compile-file
|
||||
"Compile each non-comment line of the file indicated by this `filename` into
|
||||
|
|
|
|||
|
|
@ -414,7 +414,7 @@
|
|||
(use 'mw-engine.utils)
|
||||
(let [afn (eval (parse-rule rule-text))]
|
||||
(cond
|
||||
(and afn return-tuple?)(list afn rule-text)
|
||||
(and afn return-tuple?)(list afn (trim rule-text))
|
||||
true afn))))
|
||||
([rule-text]
|
||||
(compile-rule rule-text false)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue