MCPcopy Create free account
hub / github.com/TruthHun/BookStack / firstNonWS

Function firstNonWS

static/editor.md/lib/codemirror/addon/comment/comment.js:18–21  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

16 var Pos = CodeMirror.Pos;
17
18 function firstNonWS(str) {
19 var found = str.search(nonWS);
20 return found == -1 ? 0 : found;
21 }
22
23 CodeMirror.commands.toggleComment = function(cm) {
24 var minLine = Infinity, ranges = cm.listSelections(), mode = null;

Callers 1

comment.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected