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

Commit 0150b79

Browse files
committed
Merge pull request #258 from e2tha-e/mustache-regex
fixing regex for replace operation in findPartialKey_new
2 parents 2875322 + f787136 commit 0150b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/pattern_engines/engine_mustache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// given a pattern, and a partial string, tease out the "pattern key" and
7676
// return it.
7777
findPartialKey_new: function(partialString) {
78-
var partialKey = partialString.replace(this.findPartialKeyRE, '$2');
78+
var partialKey = partialString.replace(this.findPartialKeyRE, '$1');
7979
return partialKey;
8080
},
8181

0 commit comments

Comments
 (0)