Skip to content

Commit

Permalink
Fixed the bug some characters is not be escaped when packaging langua…
Browse files Browse the repository at this point in the history
…ge files
  • Loading branch information
mayswind committed Apr 9, 2019
1 parent ed10b19 commit c9de913
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ gulp.task('process-assets-bundle', ['prepare-fonts', 'prepare-langs', 'prepare-h
var lastPointIndex = fileName.lastIndexOf('.');
var languageName = fileName.substr(0, lastPointIndex);

content = content.replace(/\\/g, '\\\\');
content = content.replace(/\r/g, '');
content = content.replace(/\n/g, '\\n');
content = content.replace(/"/g, '\\"');
Expand Down

0 comments on commit c9de913

Please sign in to comment.