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

Function getHn

Rewrite-Parser.js:2125–2135  ·  view source on GitHub ↗
(x, arr, addMethod)

Source from the content-addressed store, hash-verified

2123}
2124
2125function getHn(x, arr, addMethod) {
2126 let hnBox2 = x
2127 .replace(/\s|%.+%/g, '')
2128 .split('=')[1]
2129 .split(/,/)
2130 for (let i = 0; i < hnBox2.length; i++) {
2131 hnBox2[i].length > 0 && arr.push(hnBox2[i])
2132 } //for
2133 if (/%INSERT%/i.test(x)) return '%INSERT%'
2134 else return addMethod
2135}
2136
2137function pieceHn(arr) {
2138 if (!isStashiOS && arr.length > 0) return arr.join(', ')

Callers 1

Rewrite-Parser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected