Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
bc5aefbc
Commit
bc5aefbc
authored
Aug 13, 2020
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
uri: add "jami" scheme
Change-Id: I4e649c55c7b0223e86806350ef0cb7255f023047
parent
f7a6b84b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring-android/libringclient/src/main/java/cx/ring/model/Uri.java
+1
-0
1 addition, 0 deletions
...ndroid/libringclient/src/main/java/cx/ring/model/Uri.java
with
1 addition
and
0 deletions
ring-android/libringclient/src/main/java/cx/ring/model/Uri.java
+
1
−
0
View file @
bc5aefbc
...
@@ -36,6 +36,7 @@ public class Uri implements Serializable {
...
@@ -36,6 +36,7 @@ public class Uri implements Serializable {
private
static
final
Pattern
RING_URI_PATTERN
=
Pattern
.
compile
(
"^\\s*(?:ring(?:[\\s\\:]+))?(\\p{XDigit}{40})(?:@ring\\.dht)?\\s*$"
,
Pattern
.
CASE_INSENSITIVE
);
private
static
final
Pattern
RING_URI_PATTERN
=
Pattern
.
compile
(
"^\\s*(?:ring(?:[\\s\\:]+))?(\\p{XDigit}{40})(?:@ring\\.dht)?\\s*$"
,
Pattern
.
CASE_INSENSITIVE
);
private
static
final
Pattern
URI_PATTERN
=
Pattern
.
compile
(
"^\\s*(\\w+:)?(?:([\\w.]+)@)?(?:([\\d\\w\\.\\-]+)(?::(\\d+))?)\\s*$"
,
Pattern
.
CASE_INSENSITIVE
);
private
static
final
Pattern
URI_PATTERN
=
Pattern
.
compile
(
"^\\s*(\\w+:)?(?:([\\w.]+)@)?(?:([\\d\\w\\.\\-]+)(?::(\\d+))?)\\s*$"
,
Pattern
.
CASE_INSENSITIVE
);
public
static
final
String
RING_URI_SCHEME
=
"ring:"
;
public
static
final
String
RING_URI_SCHEME
=
"ring:"
;
public
static
final
String
JAMI_URI_SCHEME
=
"jami:"
;
private
static
final
String
ipv4Pattern
=
"(([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d\\d?|2[0-4]\\d|25[0-5])"
;
private
static
final
String
ipv4Pattern
=
"(([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d\\d?|2[0-4]\\d|25[0-5])"
;
private
static
final
String
ipv6Pattern
=
"([0-9a-f]{1,4}:){7}([0-9a-f]){1,4}"
;
private
static
final
String
ipv6Pattern
=
"([0-9a-f]{1,4}:){7}([0-9a-f]){1,4}"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment