MCPcopy
hub / github.com/drawdb-io/drawdb / strHasQuotes

Function strHasQuotes

src/utils/utils.js:26–34  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

24}
25
26export function strHasQuotes(str) {
27 if (str.length < 2) return false;
28
29 return (
30 (str[0] === str[str.length - 1] && str[0] === "'") ||
31 (str[0] === str[str.length - 1] && str[0] === '"') ||
32 (str[0] === str[str.length - 1] && str[0] === "`")
33 );
34}
35
36const keywords = [
37 "NULL",

Callers 1

datatypes.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected