From ee7e10aa2ae1cb96b0ee6e4501ae378317456281 Mon Sep 17 00:00:00 2001 From: CrossNox Date: Sun, 27 Nov 2022 15:26:50 -0300 Subject: [PATCH] fix code --- src/rustint/core.clj | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/rustint/core.clj b/src/rustint/core.clj index 62fedb3..a707257 100644 --- a/src/rustint/core.clj +++ b/src/rustint/core.clj @@ -2179,7 +2179,7 @@ ) (defn get-rust-formatters [s] - (map last (re-seq #"\{:?(.\d)?\}" s)) + (map last (re-seq #"\{:?(.\d+)?\}" s)) ) (defn convertir-formato-impresion [args] @@ -2189,7 +2189,20 @@ (rest args) (get-rust-formatters (first args)) ) - ] args) + ] (if (empty? clojure-fspecifiers) + args + + (into + (rest args) + (list (clojure.string/join + (interleave + (clojure.string/split (first args) #"\{:?(\.\d+)?\}") + (into '("") clojure-fspecifiers) + ) + )) + ) + ) + ) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;