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

Commit 1eb4769

Browse files
committed
attempting an alternative syntax for regex construction
1 parent 01732b1 commit 1eb4769

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/util_mustache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// the term "alphanumeric" includes underscores.
1414

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

1818
// look for an opening mustache include tag, followed by >=0 whitespaces
1919
var partialsWithStyleModifiersStr = '{{>\\s*';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "patternengine-node-mustache",
33
"description": "The Mustache engine for Pattern Lab / Node",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"main": "lib/engine_mustache.js",
66
"dependencies": {
77
"mustache": "^2.2.0"

0 commit comments

Comments
 (0)