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

Function getCommentHandler

Gulpfile.js:22–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20var version = pack.version;
21
22function getCommentHandler() {
23 var inMetaBlock = false;
24 return function (node, comment) {
25 var value = comment.value.trim();
26 if (comment.type === 'comment2' && value.charAt(0) === '!') {
27 return true;
28 }
29 if (value === '==UserScript==') {
30 inMetaBlock = true;
31 return true;
32 }
33 if (value === '==/UserScript==') {
34 inMetaBlock = false;
35 return true;
36 }
37 return inMetaBlock;
38 }
39}
40
41gulp.task('icons', function (cb) {
42 var used = [

Callers 1

Gulpfile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected