(value)
| 20 | export const parentsRegex = /\$parents\s*\[\s*(['"]*)\w*\1\s*\]/g; |
| 21 | |
| 22 | function isNamedParam(value) { |
| 23 | const equalSignIndex = value.search(hasEqualSignRegex); |
| 24 | if (equalSignIndex > -1) { |
| 25 | const equalSignSurround = value.substr(equalSignIndex > 0 ? equalSignIndex - 1 : 0, 3); |
| 26 | if (equalSignSurround.search(equalSignComparisionOperatorsRegex) === -1) { |
| 27 | return true; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | function areNamedParams(params: Array<any>) { |
| 35 | for (let i = 0; i < params.length; i++) { |