Skip to content

Commit

Permalink
allow $ and @ signs in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Mar 18, 2017
1 parent b827abd commit eb3cc86
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 @@ -188,7 +188,7 @@
* @return {String} compiled template
*/
var compileTemplate = function (template, isString) {
var TEMPLATE_RE = /{{([A-Za-z0-9_]+)([A-Za-z0-9_.()'"+\-*/\s\[\]]+)?}}/gi;
var TEMPLATE_RE = /{{([A-Za-z0-9_$@]+)([A-Za-z0-9_.()'"+\-*/\s\[\]]+)?}}/gi;
var compiled = template;
template.replace(TEMPLATE_RE, function (match, key, modifiers) {
if (!modifiers) {
Expand Down
Loading

0 comments on commit eb3cc86

Please sign in to comment.