MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / findFirstNonWhiteSpaceCharacter

Function findFirstNonWhiteSpaceCharacter

lib/web/CodeMirror/keymap/vim.js:3328–3334  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

3326 }
3327
3328 function findFirstNonWhiteSpaceCharacter(text) {
3329 if (!text) {
3330 return 0;
3331 }
3332 var firstNonWS = text.search(/\S/);
3333 return firstNonWS == -1 ? text.length : firstNonWS;
3334 }
3335
3336 function expandWordUnderCursor(cm, inclusive, _forward, bigWord, noSymbol) {
3337 var cur = getHead(cm);

Callers 1

VimFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected