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

Function getSwitchDefault

Rewrite-Parser.beta.js:2098–2103  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2096}
2097
2098function getSwitchDefault(value) {
2099 value = stripWrapQuote(`${value ?? ''}`.trim())
2100 .split(',')[0]
2101 .trim()
2102 return /^true$/i.test(value) ? 'true' : 'false'
2103}
2104
2105function getToggleSwitchDefault(value) {
2106 value = stripWrapQuote(`${value ?? ''}`.trim())

Callers 3

getSurgeArgumentDefaultFunction · 0.85
formatLoonArgumentValueFunction · 0.85
getSurgeRuleTogglePrefixFunction · 0.85

Calls 1

stripWrapQuoteFunction · 0.85

Tested by

no test coverage detected