Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uritemplate-js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
uritemplate-js
Commits
b74e1c1d
Commit
b74e1c1d
authored
Oct 23, 2012
by
fxa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo "experssions" -> "expressions" according #5 of cce3
parent
5ab0bbc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
src/uritemplate.js
src/uritemplate.js
+5
-9
No files found.
src/uritemplate.js
View file @
b74e1c1d
(
function
(
exportCallback
)
{
"
use strict
"
;
...
...
@@ -32,7 +31,8 @@
}
return
currentValue
;
}
// TODO remove
function
arrayAll
(
array
,
predicate
)
{
var
index
;
for
(
index
=
0
;
index
<
array
.
length
;
index
+=
1
)
{
...
...
@@ -199,7 +199,7 @@
function
UriTemplate
(
templateText
,
expressions
)
{
this
.
templateText
=
templateText
;
this
.
exp
er
ssions
=
expressions
;
this
.
exp
re
ssions
=
expressions
;
}
UriTemplate
.
prototype
.
toString
=
function
()
{
...
...
@@ -210,8 +210,8 @@
var
index
,
result
=
''
;
for
(
index
=
0
;
index
<
this
.
exp
er
ssions
.
length
;
index
+=
1
)
{
result
+=
this
.
exp
er
ssions
[
index
].
expand
(
variables
);
for
(
index
=
0
;
index
<
this
.
exp
re
ssions
.
length
;
index
+=
1
)
{
result
+=
this
.
exp
re
ssions
[
index
].
expand
(
variables
);
}
return
result
;
};
...
...
@@ -483,10 +483,6 @@
literalStart
=
null
;
braceOpenIndex
=
index
;
}
// TODO if (chr === ';')
// In a regular URI a colon is only allowed as separator after a uri scheme (e.g. 'http:') and between host and port
// (e.g. 'example.com:443'). So the only slash allowed in front of a colon is the '//' after the scheme separator
// throw new Error('":" not allowed after a "/" in a regular uri');
continue
;
}
...
...
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