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

Function cleanName

static/editor.md/lib/codemirror/addon/hint/sql-hint.js:64–70  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

62 }
63
64 function cleanName(name) {
65 // Get rid name from backticks(`) and preceding dot(.)
66 if (name.charAt(0) == ".") {
67 name = name.substr(1);
68 }
69 return name.replace(/`/g, "");
70 }
71
72 function insertBackticks(name) {
73 var nameParts = getText(name).split(".");

Callers 1

nameCompletionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected