(val)
| 5613 | var expressionEndPos; |
| 5614 | |
| 5615 | function parseModel (val) { |
| 5616 | str = val; |
| 5617 | len = str.length; |
| 5618 | index$1 = expressionPos = expressionEndPos = 0; |
| 5619 | |
| 5620 | if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) { |
| 5621 | return { |
| 5622 | exp: val, |
| 5623 | idx: null |
| 5624 | } |
| 5625 | } |
| 5626 | |
| 5627 | while (!eof()) { |
| 5628 | chr = next(); |
| 5629 | /* istanbul ignore if */ |
| 5630 | if (isStringStart(chr)) { |
| 5631 | parseString(chr); |
| 5632 | } else if (chr === 0x5B) { |
| 5633 | parseBracket(chr); |
| 5634 | } |
| 5635 | } |
| 5636 | |
| 5637 | return { |
| 5638 | exp: val.substring(0, expressionPos), |
| 5639 | idx: val.substring(expressionPos + 1, expressionEndPos) |
| 5640 | } |
| 5641 | } |
| 5642 | |
| 5643 | function next () { |
| 5644 | return str.charCodeAt(++index$1) |
no test coverage detected