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) + ) + )) + ) + ) + ) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;