mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +01:00
Accept links without briar:// prefix.
This commit is contained in:
@@ -139,8 +139,8 @@ public class ContactLinkInputActivity extends BriarActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isBriarLink(CharSequence s) {
|
private boolean isBriarLink(CharSequence s) {
|
||||||
String regex = "^briar://[A-Z2-7]{64}$";
|
String link = s.toString().trim();
|
||||||
return s.toString().trim().matches(regex);
|
return link.matches("^(briar://)?[A-Z2-7]{64}$");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateAddButtonState() {
|
private void updateAddButtonState() {
|
||||||
|
|||||||
Reference in New Issue
Block a user