-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mohamed Javid <[email protected]>
- Loading branch information
1 parent
393fcb0
commit b1ff41a
Showing
3 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(ns status-im.contexts.wallet.common.validation | ||
(:require [status-im.constants :as constants])) | ||
|
||
(defn ens-name? [s] (re-find constants/regx-ens s)) | ||
(defn ens-name? [s] (boolean (re-find constants/regx-ens s))) | ||
(defn eth-address? [s] (re-find constants/regx-multichain-address s)) | ||
(defn private-key? [s] (re-find constants/regx-private-key s)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters