Rename unsigned-int? to unsigned-int-string?

This commit is contained in:
2023-11-01 15:01:22 +02:00
parent 0261c97d76
commit 91dc00ea0d
3 changed files with 10 additions and 7 deletions
@@ -2,7 +2,7 @@
(:require [cheshire.core :as cc])
(:gen-class))
(defn unsigned-int?
(defn unsigned-int-string?
"Return true if the string is an unsigned integer."
[str]
(if (re-matches #"\d+" str)
@@ -15,7 +15,7 @@
(int? str-or-int)
str-or-int
(unsigned-int? str-or-int)
(unsigned-int-string? str-or-int)
(Integer/parseInt str-or-int)
:else