(x, arr, addMethod)
| 2123 | } |
| 2124 | |
| 2125 | function 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 | |
| 2137 | function pieceHn(arr) { |
| 2138 | if (!isStashiOS && arr.length > 0) return arr.join(', ') |