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

Function eachWord

static/editor.md/lib/codemirror/addon/hint/sql-hint.js:141–148  ·  view source on GitHub ↗
(lineText, f)

Source from the content-addressed store, hash-verified

139 }
140
141 function eachWord(lineText, f) {
142 if (!lineText) return;
143 var excepted = /[,;]/g;
144 var words = lineText.split(" ");
145 for (var i = 0; i < words.length; i++) {
146 f(words[i]?words[i].replace(excepted, '') : '');
147 }
148 }
149
150 function convertCurToNumber(cur) {
151 // max characters of a line is 999,999.

Callers 1

findTableByAliasFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected