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

Function addMatches

static/editor.md/lib/codemirror/addon/hint/sql-hint.js:52–62  ·  view source on GitHub ↗
(result, search, wordlist, formatter)

Source from the content-addressed store, hash-verified

50 }
51
52 function addMatches(result, search, wordlist, formatter) {
53 for (var word in wordlist) {
54 if (!wordlist.hasOwnProperty(word)) continue;
55 if (Array.isArray(wordlist)) {
56 word = wordlist[word];
57 }
58 if (match(search, word)) {
59 result.push(formatter(word));
60 }
61 }
62 }
63
64 function cleanName(name) {
65 // Get rid name from backticks(`) and preceding dot(.)

Callers 2

nameCompletionFunction · 0.85
sql-hint.jsFile · 0.85

Calls 1

matchFunction · 0.85

Tested by

no test coverage detected