MCPcopy Index your code
hub / github.com/zxlie/FeHelper / eatComment

Function eatComment

apps/code-beautify/content-script.js:34–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 let skipWhitespace = () => { let start = pos; do {} while (whiteRe.test(next())); return pos !== start + 1; };
33
34 let eatComment = () => {
35 let start = pos; next();
36 while (next()) { if (ch === "*" && peek() === "/") { pos++; break; } }
37 return source_text.substring(start, pos + 1);
38 };
39
40 let lookBack = (str) => source_text.substring(pos - str.length, pos).toLowerCase() === str;
41

Callers 1

cssBeautifyFunction · 0.70

Calls 2

nextFunction · 0.70
peekFunction · 0.70

Tested by

no test coverage detected