Skip to content

Commit d8dca4c

Browse files
committed
snapshot
1 parent cc7bfe7 commit d8dca4c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

dist/r.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 2.3.2 Copyright jQuery Foundation and other contributors.
2+
* @license r.js 2.3.2+ Mon, 26 Sep 2016 05:58:05 GMT Copyright jQuery Foundation and other contributors.
33
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
44
*/
55

@@ -19,7 +19,7 @@ var requirejs, require, define, xpcUtil;
1919
(function (console, args, readFileFunc) {
2020
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2121
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
22-
version = '2.3.2',
22+
version = '2.3.2+ Mon, 26 Sep 2016 05:58:05 GMT',
2323
jsSuffixRegExp = /\.js$/,
2424
commandOption = '',
2525
useLibLoaded = {},
@@ -23789,6 +23789,17 @@ function (esprima, parse, logger, lang) {
2378923789
//start.line is 1-based, not 0 based.
2379023790
lineIndex = loc.start.line - 1,
2379123791
line = contentLines[lineIndex];
23792+
23793+
if (!line) {
23794+
//In rare cases, file contains just \r instead of \r\n, so
23795+
//adjust the contentLines and try again.
23796+
//https://github.com/requirejs/r.js/issues/924
23797+
if (contents.indexOf('\r') !== -1) {
23798+
contentLines = contents.split('\r');
23799+
}
23800+
line = contentLines[lineIndex];
23801+
}
23802+
2379223803
contentLines[lineIndex] = line.substring(0, startIndex) +
2379323804
contentInsertion +
2379423805
line.substring(startIndex,

0 commit comments

Comments
 (0)