(x, regex, parserRegex)
| 2072 | |
| 2073 | //script |
| 2074 | function getJsInfo(x, regex, parserRegex) { |
| 2075 | parserRegex = |
| 2076 | typeof parserRegex != 'undefined' |
| 2077 | ? parserRegex |
| 2078 | : /script-name\s*=/.test(x) |
| 2079 | ? panelRegex |
| 2080 | : /script-path\s*=/.test(x) |
| 2081 | ? jsRegex |
| 2082 | : /\s(data-type|data|data-path)\s*=/.test(x) |
| 2083 | ? mockRegex |
| 2084 | : '' |
| 2085 | if (regex.test(x)) { |
| 2086 | return x.split(regex)[1].split(parserRegex)[0] |
| 2087 | } else { |
| 2088 | return '' |
| 2089 | } |
| 2090 | } |
| 2091 | |
| 2092 | function reJsValue(target, nvalue, jsname, ori, orivalue) { |
| 2093 | let q = orivalue |
no outgoing calls
no test coverage detected