Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
9991bf23
Commit
9991bf23
authored
Nov 08, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Utils/uri-tools): in progress
parent
6b19193f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
uri-tools.js
tests/ui/scripts/Utils/uri-tools.js
+5
-9
No files found.
tests/ui/scripts/Utils/uri-tools.js
View file @
9991bf23
...
...
@@ -4,11 +4,11 @@
// Level 0. ----------------------------------------------------------
var
URI_PCT_ENCODED
=
'
%[A-Fa-f
0-9
]{2}
'
var
URI_PORT
=
'
[0-9]
*
'
var
URI_SCHEME
=
'
[a-zA-Z][
a-zA-Z0-9
+
\
-
\
.]*
'
var
URI_PCT_ENCODED
=
'
%[A-Fa-f
\\
d
]{2}
'
var
URI_PORT
=
'
\
d
*
'
var
URI_SCHEME
=
'
[a-zA-Z][
\\
w
+
\
-
\
.]*
'
var
URI_SUB_DELIMS
=
'
[!$&
\'
()*+,;=]
'
var
URI_UNRESERVED
=
'
[
a-zA-Z0-9
\
-
\
._~]
'
var
URI_UNRESERVED
=
'
[
\\
w
\
-
\
._~]
'
// Level 1. ----------------------------------------------------------
...
...
@@ -65,6 +65,7 @@ var URI_PATH_ROOTLESS =
// Level 4. ----------------------------------------------------------
// `path-empty` not used.
var
URI_HIER_PART
=
'
(?:
'
+
'
//
'
+
URI_AUTHORITY
+
URI_PATH_ABEMPTY
+
'
|
'
+
URI_PATH_ABSOLUTE
+
...
...
@@ -90,10 +91,6 @@ function test () {
test
()
/* TODO: Supports:
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
URI-reference = URI / relative-ref
...
...
@@ -141,7 +138,6 @@ test()
/ path-empty ; zero characters
path-noscheme = segment-nz-nc *( "/" segment )
path-empty = 0<pchar>
segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )
; non-zero-length segment without any colon ":"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment