MCPcopy
hub / github.com/Tampermonkey/tampermonkey / comment

Function comment

src/jslint.js:1416–1427  ·  view source on GitHub ↗
(snippet)

Source from the content-addressed store, hash-verified

1414 }
1415
1416 function comment(snippet) {
1417 if (comments_off || src || (xmode && xmode !== 'script' &&
1418 xmode !== 'style' && xmode !== 'styleproperty')) {
1419 warn_at('unexpected_comment', line, character);
1420 } else if (xmode === 'script' && /<\//i.test(source_row)) {
1421 warn_at('unexpected_a', line, character, '<\/');
1422 } else if (option.safe && ax.test(snippet)) {
1423 warn_at('dangerous_comment', line, character);
1424 } else if (!option.todo && tox.test(snippet)) {
1425 warn_at('todo_comment', line, character);
1426 }
1427 }
1428
1429 function regexp() {
1430 var b,

Callers 1

jslint.jsFile · 0.85

Calls 1

warn_atFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…