Browse Source

minor regexp improvement

master
Christian Mueller 12 years ago
parent
commit
ad40e27345
  1. 2
      src/notehub/storage.clj

2
src/notehub/storage.clj

@ -9,7 +9,7 @@
(defn sign (defn sign
"Returns the MD5 hash for the concatenation of all passed parameters" "Returns the MD5 hash for the concatenation of all passed parameters"
[& args] [& args]
(let [input (sreplace (apply str args) #"\r*" "")] (let [input (sreplace (apply str args) #"\r+" "")]
(do (.reset md5Instance) (do (.reset md5Instance)
(.update md5Instance (.getBytes input)) (.update md5Instance (.getBytes input))
(apply str (apply str

Loading…
Cancel
Save