We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a1301c commit e8a4029Copy full SHA for e8a4029
src/status_im/common/validation/profile.cljs
@@ -9,8 +9,6 @@
9
;; https://github.com/status-im/status-desktop/blob/2ba96803168461088346bf5030df750cb226df4c/ui/imports/utils/Constants.qml#L468
10
(def min-length 5)
11
12
-(def status-regex #"^[a-zA-Z0-9\-_ ]+$")
13
-
14
(def common-names ["Ethereum" "Bitcoin"])
15
16
(defn has-common-names? [s] (pos? (count (filter #(string/includes? s %) common-names))))
src/status_im/common/validators.cljs
@@ -16,7 +16,8 @@
17
(defn has-emojis? [s] (boolean (re-find utils.emojilib/emoji-regex s)))
18
19
+(def no-special-chars-regex #"^[a-zA-Z0-9\-_ ]+$")
20
(defn has-special-characters?
21
[s]
22
(and (not (= s ""))
- (not (re-find #"^[a-zA-Z0-9\-_ ]+$" s))))
23
+ (not (re-find no-special-chars-regex s))))
0 commit comments