Skip to content

Commit

Permalink
Merge PR twigjs#157 and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
justjohn committed Jun 10, 2014
2 parents efe781c + 6687740 commit 87451dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/twig.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ var Twig = (function (Twig) {
var path = require("path"),
sep = path.sep || sep_chr,
relative = new RegExp("^\\.{1,2}" + sep.replace("\\", "\\\\"));
file = file.replace(/\//g, sep);

if (template.base !== undefined && file.match(relative) == null) {
file = file.replace(template.base, '');
Expand Down
1 change: 1 addition & 0 deletions twig.js
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ var Twig = (function (Twig) {
var path = require("path"),
sep = path.sep || sep_chr,
relative = new RegExp("^\\.{1,2}" + sep.replace("\\", "\\\\"));
file = file.replace(/\//g, sep);

if (template.base !== undefined && file.match(relative) == null) {
file = file.replace(template.base, '');
Expand Down
2 changes: 1 addition & 1 deletion twig.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion twig.min.js.map

Large diffs are not rendered by default.

0 comments on commit 87451dc

Please sign in to comment.