Fork me on GitHub
#juxt
<
2017-12-22
>
crimeminister19:12:16

Hi all, have bumped up against a couple of issues in writing a Machfile: https://gist.github.com/crimeminister/f4f57ef5eafb8d8a8d0a5e87e48403dc

crimeminister19:12:16

One is that I can't seem to require '[lumo.util] to make use of the lumo.util/file? function

crimeminister19:12:03

And the other is that using a CLJS regex breaks things

crimeminister19:12:28

Robert Medeiros:
{
 mach/props [token-pattern #"_authToken=(.+)"]
 ;;mach/props [token-pattern (js/RegExp. "_authToken=(.+)")]
 main (println token-pattern)
}

crimeminister19:12:32

i.e. using js/RegExp works where using #"" does not

crimeminister19:12:14

Any tips or insight appreciated

crimeminister19:12:42

Turns out the easy fix for being unable to use lumo.util/file? is to use mach.core/file?.