(x, arr, addMethod, toggleKey = '')
| 2526 | } |
| 2527 | |
| 2528 | function getHn(x, arr, addMethod, toggleKey = '') { |
| 2529 | let hnBox2 = x |
| 2530 | .replace(/\s|%.+%/g, '') |
| 2531 | .split('=')[1] |
| 2532 | .split(/,/) |
| 2533 | for (let i = 0; i < hnBox2.length; i++) { |
| 2534 | hnBox2[i].length > 0 && arr.push(toggleKey ? { value: hnBox2[i], toggleKey } : hnBox2[i]) |
| 2535 | } //for |
| 2536 | if (/%INSERT%/i.test(x)) return '%INSERT%' |
| 2537 | else return addMethod |
| 2538 | } |
| 2539 | |
| 2540 | function pieceHn(arr) { |
| 2541 | arr = arr.map(item => getHnValue(item)) |
no outgoing calls
no test coverage detected