(str)
| 2085 | } |
| 2086 | |
| 2087 | function quoteIfNeeded(str) { |
| 2088 | str = `${str ?? ''}`.trim() |
| 2089 | if (/^'.*'$/.test(str)) str = `"${str.slice(1, -1)}"` |
| 2090 | return /[\s,]/.test(str) && !/^".*"$/.test(str) ? `"${str}"` : str |
| 2091 | } |
| 2092 | |
| 2093 | function quoteLoonInputValue(str) { |
| 2094 | str = stripWrapQuote(`${str ?? ''}`.trim()) |
no outgoing calls
no test coverage detected