packages/moon/src/compiler/lexer/lexer.js
function scopeExpression(expression) {
	return expression.replace(expressionRE, (match, name) =>
		(
			name === undefined ||
			name[0] === "$" ||
			globals.indexOf(name) !== -1
		) ?
			match :
			"data." + name
	);
}
function scopeExpression(expression) {
	return expression.replace(expressionRE, (match, name) =>
		(
			name === undefined ||
			name[0] === "$" ||
			globals.indexOf(name) !== -1
		) ?
			match :
			"data." + name
	);
}
function scopeExpression ( expression ) { return expression . replace ( expressionRE , ( match , name ) => ( name === undefined || name [ 0 ] === "$" || globals . indexOf ( name ) !== - 1 ) ? match : "data." + name ) ; }
Scope an expression to use variables within the `data` object.

@param {string} expression
Scope an expression to use variables within the data object .