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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy