Skip to content

Commit e8a4029

Browse files
committed
lint
1 parent 3a1301c commit e8a4029

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/status_im/common/validation/profile.cljs

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
;; https://github.com/status-im/status-desktop/blob/2ba96803168461088346bf5030df750cb226df4c/ui/imports/utils/Constants.qml#L468
1010
(def min-length 5)
1111

12-
(def status-regex #"^[a-zA-Z0-9\-_ ]+$")
13-
1412
(def common-names ["Ethereum" "Bitcoin"])
1513

1614
(defn has-common-names? [s] (pos? (count (filter #(string/includes? s %) common-names))))

src/status_im/common/validators.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
(defn has-emojis? [s] (boolean (re-find utils.emojilib/emoji-regex s)))
1818

19+
(def no-special-chars-regex #"^[a-zA-Z0-9\-_ ]+$")
1920
(defn has-special-characters?
2021
[s]
2122
(and (not (= s ""))
22-
(not (re-find #"^[a-zA-Z0-9\-_ ]+$" s))))
23+
(not (re-find no-special-chars-regex s))))

0 commit comments

Comments
 (0)