Skip to content

Commit

Permalink
allow support for booleans and object properties in mustaches
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 18, 2017
1 parent 9333416 commit 00f33de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@

/* ======= Compiler ======= */
var whitespaceRE = /\s/;
var expressionRE = /"[^"]*"|'[^']*'|\.\w*[a-zA-Z$_]\w*|(\w*[a-zA-Z$_]\w*)/g;
var expressionRE = /"[^"]*"|'[^']*'|\btrue\b|\bfalse\b|\.\w*[a-zA-Z$_]\w*|\w*[a-zA-Z$_]\w*:|(\w*[a-zA-Z$_]\w*)/g;

/**
* Compiles a Template
Expand Down
Loading

0 comments on commit 00f33de

Please sign in to comment.