Commit b74e1c1d authored by fxa's avatar fxa

Fixed typo "experssions" -> "expressions" according #5 of cce3

parent 5ab0bbc3
(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.experssions = expressions;
this.expressions = expressions;
}
UriTemplate.prototype.toString = function () {
......@@ -210,8 +210,8 @@
var
index,
result = '';
for (index = 0; index < this.experssions.length; index += 1) {
result += this.experssions[index].expand(variables);
for (index = 0; index < this.expressions.length; index += 1) {
result += this.expressions[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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment