Skip to content

Commit ddc6884

Browse files
committed
Merge branch 'master' of github.com:requirejs/text
2 parents d52916b + cad8351 commit ddc6884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ define(['module'], function (module) {
252252
try {
253253
var file = fs.readFileSync(url, 'utf8');
254254
//Remove BOM (Byte Mark Order) from utf8 files if it is there.
255-
if (file.indexOf('\uFEFF') === 0) {
255+
if (file[0] === '\uFEFF') {
256256
file = file.substring(1);
257257
}
258258
callback(file);

0 commit comments

Comments
 (0)