Permalink
Browse files

text plugin fix for \r

  • Loading branch information...
1 parent 3fee027 commit d4651f35a24423cc05cc1410bdca0efc4d7bc739 @cadorn cadorn committed Jun 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pinf-loader-js/sandbox.js
@@ -279,7 +279,7 @@ Sandbox.prototype.init = function()
// text plugin
code =
"loader.bravojs.module.declare([], function() {\n" +
- 'return ["' + data.replace(/"/g, '\\"').replace(/\n/g, '","') + '"].join("\\n");' +
+ 'return ["' + data.replace(/"/g, '\\"').replace(/\r/g, '').replace(/\n/g, '","') + '"].join("\\n");' +
"\n});";
}
else

0 comments on commit d4651f3

Please sign in to comment.