code: function checkPattern(sections) {
  	var length = sections.length;
  	for (var index = 0; index < length; index++) {
  		var current = sections[index];
  		if (current[0] === WILDCARD_ALL) {
  			if (!isLast(sections, index))
  				throw new TypeError("# wildcard can only be at the end of a pattern. In: " + sections.join("/"));
  		}
  	}
  }
docs: Validation functions