MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / isSimplePath

Function isSimplePath

06.Router/basic/js/vue.js:2997–3003  ·  view source on GitHub ↗

* Check if an expression is a simple path. * * @param {String} exp * @return {Boolean}

(exp)

Source from the content-addressed store, hash-verified

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
3005var expression = Object.freeze({
3006 parseExpression: parseExpression,

Callers 4

parseExpressionFunction · 0.70
processPropValueFunction · 0.70
registerComponentEventsFunction · 0.70
vue.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected