* Check if an expression is a simple path. * * @param {String} exp * @return {Boolean}
(exp)
| 2995 | */ |
| 2996 | |
| 2997 | function isSimplePath(exp) { |
| 2998 | return pathTestRE.test(exp) && |
| 2999 | // don't treat literal values as paths |
| 3000 | !literalValueRE$1.test(exp) && |
| 3001 | // Math constants e.g. Math.PI, Math.E etc. |
| 3002 | exp.slice(0, 5) !== 'Math.'; |
| 3003 | } |
| 3004 | |
| 3005 | var expression = Object.freeze({ |
| 3006 | parseExpression: parseExpression, |
no outgoing calls
no test coverage detected