Skip to content

Commit 4f702e2

Browse files
committed
Specify utf8 encoding.
1 parent b188f90 commit 4f702e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/common/util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ var _ = require('lodash'),
99

1010
function globTemplate(pattern) {
1111
return _.transform(glob.sync(pattern), function(result, filePath) {
12-
result[path.basename(filePath, path.extname(filePath))] = _.template(fs.readFileSync(filePath));
12+
var key = path.basename(filePath, path.extname(filePath));
13+
result[key] = _.template(fs.readFileSync(filePath, 'utf8'));
1314
}, {});
1415
}
1516

0 commit comments

Comments
 (0)