Fork me on GitHub
#clj-kondo
<
2020-03-16
>
helios15:03:05

(when-let [[_ map-decl map-path] (re-find #"(sourceMappingURL=(.*))\s*$" contents)]
    (let [map-path (str/replace map-path "$" "\\$")]
      (when-let [[new-map-path _] (get full-sha-map [(str/replace old-rel #"(?<=/)[^/]*$" map-path)
                                                 (str/replace old-full #"(?<=/)[^/]*$" map-path)])]
I'm getting a clj-kondo error Regex match arg requires string or function replacement arg. for both lines. Is it a bug? It's not clear to me what's wrong with the regex

borkdude15:03:06

it's a bug. see the next-release column: https://github.com/borkdude/clj-kondo/projects/1

👍 8
borkdude15:03:44

I hope to do a release on Friday, since it's clj-kondo's birthday then 🙂 (well, the first commit was on March 20th)

helios15:03:36

Nice 😄 party @ this channel? 🎂 parrot

borkdude15:03:16

🙂 you might want to lint with clj-kondo master to see if it fixes your issue

helios15:03:29

yes i've done it already. Props to deps.edn 😄