Commit b74e1c1d authored by fxa's avatar fxa

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

parent 5ab0bbc3
(function (exportCallback) { (function (exportCallback) {
"use strict"; "use strict";
...@@ -32,7 +31,8 @@ ...@@ -32,7 +31,8 @@
} }
return currentValue; return currentValue;
} }
// TODO remove
function arrayAll(array, predicate) { function arrayAll(array, predicate) {
var index; var index;
for (index = 0; index < array.length; index += 1) { for (index = 0; index < array.length; index += 1) {
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
function UriTemplate(templateText, expressions) { function UriTemplate(templateText, expressions) {
this.templateText = templateText; this.templateText = templateText;
this.experssions = expressions; this.expressions = expressions;
} }
UriTemplate.prototype.toString = function () { UriTemplate.prototype.toString = function () {
...@@ -210,8 +210,8 @@ ...@@ -210,8 +210,8 @@
var var
index, index,
result = ''; result = '';
for (index = 0; index < this.experssions.length; index += 1) { for (index = 0; index < this.expressions.length; index += 1) {
result += this.experssions[index].expand(variables); result += this.expressions[index].expand(variables);
} }
return result; return result;
}; };
...@@ -483,10 +483,6 @@ ...@@ -483,10 +483,6 @@
literalStart = null; literalStart = null;
braceOpenIndex = index; 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; 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