Skip to content

Commit

Permalink
Fix error in browser build
Browse files Browse the repository at this point in the history
  • Loading branch information
toptalo committed Dec 7, 2018
1 parent 36d4a13 commit 6f7d908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/twig.path.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module.exports = function (Twig) {
}

// check if keyed namespace exists at path's start
var colon = new RegExp(`^${k}::`);
var atSign = new RegExp(`^@${k}`);
var colon = new RegExp('^' + k + '::');
var atSign = new RegExp('^@' + k);

if (colon.test(file)) {
file = file.replace(k + '::', namespaces[k]);
Expand Down

0 comments on commit 6f7d908

Please sign in to comment.