|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/** |
|
|
|
|
* @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. |
|
|
|
|
* @license RequireJS text 2.0.13 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. |
|
|
|
|
* Available via the MIT or new BSD license. |
|
|
|
|
* see: http://github.com/requirejs/text for details
|
|
|
|
|
*/ |
|
|
|
@ -23,7 +23,7 @@ define(['module'], function (module) {
@@ -23,7 +23,7 @@ define(['module'], function (module) {
|
|
|
|
|
masterConfig = (module.config && module.config()) || {}; |
|
|
|
|
|
|
|
|
|
text = { |
|
|
|
|
version: '2.0.12', |
|
|
|
|
version: '2.0.13', |
|
|
|
|
|
|
|
|
|
strip: function (content) { |
|
|
|
|
//Strips <?xml ...?> declarations so that external SVG and XML
|
|
|
|
@ -85,13 +85,13 @@ define(['module'], function (module) {
@@ -85,13 +85,13 @@ define(['module'], function (module) {
|
|
|
|
|
parseName: function (name) { |
|
|
|
|
var modName, ext, temp, |
|
|
|
|
strip = false, |
|
|
|
|
index = name.indexOf("."), |
|
|
|
|
index = name.lastIndexOf("."), |
|
|
|
|
isRelative = name.indexOf('./') === 0 || |
|
|
|
|
name.indexOf('../') === 0; |
|
|
|
|
|
|
|
|
|
if (index !== -1 && (!isRelative || index > 1)) { |
|
|
|
|
modName = name.substring(0, index); |
|
|
|
|
ext = name.substring(index + 1, name.length); |
|
|
|
|
ext = name.substring(index + 1); |
|
|
|
|
} else { |
|
|
|
|
modName = name; |
|
|
|
|
} |
|
|
|
@ -252,7 +252,7 @@ define(['module'], function (module) {
@@ -252,7 +252,7 @@ define(['module'], function (module) {
|
|
|
|
|
try { |
|
|
|
|
var file = fs.readFileSync(url, 'utf8'); |
|
|
|
|
//Remove BOM (Byte Mark Order) from utf8 files if it is there.
|
|
|
|
|
if (file.indexOf('\uFEFF') === 0) { |
|
|
|
|
if (file[0] === '\uFEFF') { |
|
|
|
|
file = file.substring(1); |
|
|
|
|
} |
|
|
|
|
callback(file); |
|
|
|
|