MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / stripWrapQuote

Function stripWrapQuote

Rewrite-Parser.beta.js:2040–2043  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2038}
2039
2040function stripWrapQuote(str) {
2041 str = `${str ?? ''}`.trim()
2042 return /^".*"$/.test(str) || /^'.*'$/.test(str) ? str.slice(1, -1) : str
2043}
2044
2045function splitTopLevel(str, sep = ',') {
2046 let arr = []

Callers 14

quoteLoonInputValueFunction · 0.85
getSwitchDefaultFunction · 0.85
getToggleSwitchDefaultFunction · 0.85
isLoonArgumentListFunction · 0.85
isLoonArgumentContainerFunction · 0.85
unwrapJsonArgumentFunction · 0.85
formatLoonJsonArgumentFunction · 0.85
getTemplateKeysFunction · 0.85
getArgumentDefaultValueFunction · 0.85
getLoonArgumentKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected