MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / stripSpace

Function stripSpace

extensions/edge/mustache.js:115–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 // Strips all whitespace tokens array for the current line
114 // if there was a {{#tag}} on it and otherwise only space.
115 function stripSpace () {
116 if (hasTag && !nonSpace) {
117 while (spaces.length)
118 delete tokens[spaces.pop()];
119 } else {
120 spaces = [];
121 }
122
123 hasTag = false;
124 nonSpace = false;
125 }
126
127 var openingTagRe, closingTagRe, closingCurlyRe;
128 function compileTags (tagsToCompile) {

Callers 1

parseTemplateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected