Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from pattern-lab/dev
Browse files Browse the repository at this point in the history
attempting an alternative syntax for regex construction
  • Loading branch information
Brian Muenzenmeyer authored Jul 4, 2016
2 parents db9eba3 + 1eb4769 commit eb5603d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util_mustache.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// the term "alphanumeric" includes underscores.

// todo: document this exact regex long form.
var partialsRE = new RegExp(/{{>\s*?([\w\-\.\/~]+)(?:\:[A-Za-z0-9-_|]+)?(?:(?:| )\(.*)?(?:\s*)?}}/, 'g');
var partialsRE = new RegExp(/{{>\s*?([\w\-\.\/~]+)(?:\:[A-Za-z0-9-_|]+)?(?:(?:| )\(.*)?(?:\s*)?}}/g);

// look for an opening mustache include tag, followed by >=0 whitespaces
var partialsWithStyleModifiersStr = '{{>\\s*';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "patternengine-node-mustache",
"description": "The Mustache engine for Pattern Lab / Node",
"version": "1.0.1",
"version": "1.0.2",
"main": "lib/engine_mustache.js",
"dependencies": {
"mustache": "^2.2.0"
Expand Down

0 comments on commit eb5603d

Please sign in to comment.