Skip to content

Commit

Permalink
Merge pull request #3579 from cb1kenobi/timob-12024
Browse files Browse the repository at this point in the history
[TIMOB-12024] Removed backslash escaping and ensured double quote escapi...
  • Loading branch information
Bryan Hughes committed Dec 12, 2012
2 parents ecdb9b6 + e5afb64 commit 34a1286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1661,8 +1661,8 @@ build.prototype = {
obj && tasks.push(function (next) {
var dest = path.join(dir, filename);
fs.writeFileSync(dest, contents.concat(Object.keys(obj).map(function (name) {
return '"' + (map && map[name] || name).replace(/\\/g, '\\\\').replace(/"/g, '\\"') +
'" = "' + (''+obj[name]).replace(/%s/g, '%@').replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '";';
return '"' + (map && map[name] || name).replace(/\\"/g, '"').replace(/"/g, '\\"') +
'" = "' + (''+obj[name]).replace(/%s/g, '%@').replace(/\\"/g, '"').replace(/"/g, '\\"') + '";';
})).join('\n'));
if (this.deployType == 'development') {
next();
Expand Down

0 comments on commit 34a1286

Please sign in to comment.