| 101 | } |
| 102 | |
| 103 | const 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 | |
| 114 | const lower = text => { |
| 115 | return text != null ? text.toLowerCase() : null |
no outgoing calls
no test coverage detected
searching dependent graphs…