We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc207a3 + 8ec13b2 commit 504ac94Copy full SHA for 504ac94
1 file changed
src/ring/util/codec.clj
@@ -157,8 +157,10 @@
157
(recur (f result (.nextToken tokenizer)))
158
result))))))
159
160
+(def ^:private ^:const kv-separator (int \=))
161
+
162
(defn- split-key-value-pair [^String s]
- (let [i (.indexOf s #=(int \=))]
163
+ (let [i (.indexOf s kv-separator)]
164
(cond
165
(pos? i) (MapEntry. (.substring s 0 i) (.substring s (inc i)))
166
(zero? i) (MapEntry. "" (.substring s (inc i)))
0 commit comments