From 89d5b40e5f9768d879eb850d7411e6d9c23329bd Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 15 Jun 2020 15:18:42 +0100 Subject: [PATCH] only allow sending to addresses that begin with b --- app/src/main/java/io/lbry/browser/utils/LbryUri.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/utils/LbryUri.java b/app/src/main/java/io/lbry/browser/utils/LbryUri.java index a7a5c3df..9e0790a7 100644 --- a/app/src/main/java/io/lbry/browser/utils/LbryUri.java +++ b/app/src/main/java/io/lbry/browser/utils/LbryUri.java @@ -13,7 +13,7 @@ public class LbryUri { public static final String LBRY_TV_BASE_URL = "https://lbry.tv"; public static final String PROTO_DEFAULT = "lbry://"; public static final String REGEX_INVALID_URI = "[ =&#:$@%?;/\\\\\"<>%\\{\\}|^~\\[\\]`\u0000-\u0008\u000b-\u000c\u000e-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]"; - public static final String REGEX_ADDRESS = "^(b|r)(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$"; + public static final String REGEX_ADDRESS = "^(b)(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$"; public static final int CHANNEL_NAME_MIN_LENGTH = 1; public static final int CLAIM_ID_MAX_LENGTH = 40;