This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-22
Channels
#juxt2017-12-22
Hi all, have bumped up against a couple of issues in writing a Machfile: https://gist.github.com/crimeminister/f4f57ef5eafb8d8a8d0a5e87e48403dc
One is that I can't seem to require '[lumo.util]
to make use of the lumo.util/file?
function
And the other is that using a CLJS regex breaks things
Robert Medeiros:
{
mach/props [token-pattern #"_authToken=(.+)"]
;;mach/props [token-pattern (js/RegExp. "_authToken=(.+)")]
main (println token-pattern)
}
i.e. using js/RegExp
works where using #""
does not
Any tips or insight appreciated
Turns out the easy fix for being unable to use lumo.util/file?
is to use mach.core/file?
.