(str)
| 2783 | } |
| 2784 | |
| 2785 | function getPolicy(str) { |
| 2786 | let commaNum = str.lastIndexOf(',') |
| 2787 | let bracesNum = str.lastIndexOf('}') |
| 2788 | let roundNum = str.lastIndexOf(')') |
| 2789 | if (/,\s*\{\{\{[^,]+\}\}\}$/.test(str)) { |
| 2790 | return str.match(/\{\{\{[^,]+\}\}\}$/)[0] |
| 2791 | } else if (commaNum > bracesNum && commaNum > roundNum) { |
| 2792 | return str.substring(str.lastIndexOf(',') + 1).trim() |
| 2793 | } else { |
| 2794 | return '' |
| 2795 | } |
| 2796 | } |
| 2797 | |
| 2798 | function parseArguments(str) { |
| 2799 | if (/#!arguments/.test(str)) { |
no outgoing calls
no test coverage detected