MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / removeQuotes

Function removeQuotes

src/models/GitConfig.js:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103const removeQuotes = text => {
104 return text.split('').reduce((newText, c, idx, text) => {
105 const isQuote = c === '"' && text[idx - 1] !== '\\'
106 const isEscapeForQuote = c === '\\' && text[idx + 1] === '"'
107 if (isQuote || isEscapeForQuote) {
108 return newText
109 }
110 return newText + c
111 }, '')
112}
113
114const lower = text => {
115 return text != null ? text.toLowerCase() : null

Callers 1

extractVariableLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…