MCPcopy
hub / github.com/BorisMoore/jquery-tmpl / lookAhead

Function lookAhead

demos/movies/components/jquery-ui-1.8.1.custom.js:1160–1165  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

1158 var literal = false;
1159 // Check whether a format character is doubled
1160 var lookAhead = function(match) {
1161 var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
1162 if (matches)
1163 iFormat++;
1164 return matches;
1165 };
1166 // Extract a number from the string value
1167 var getNumber = function(match) {
1168 lookAhead(match);

Callers 5

getNumberFunction · 0.85
getNameFunction · 0.85
formatNumberFunction · 0.85
formatNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected