Skip to content

Commit

Permalink
better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 1, 2014
1 parent 8a8cdd6 commit 3aedc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/jst.js
Expand Up @@ -2,7 +2,7 @@
* grunt-contrib-jst
* http://gruntjs.com/
*
* Copyright (c) 2014 Tim Branyen, contributors
* Copyright (c) 2014 Tim Branyen, contributors
* Licensed under the MIT license.
*/

Expand Down Expand Up @@ -55,7 +55,7 @@ module.exports = function(grunt) {
}

if (options.prettify) {
compiled = compiled.replace(new RegExp('\n', 'g'), '');
compiled = compiled.replace(/\n/g, '');
}
filename = processName(filepath);

Expand Down

0 comments on commit 3aedc01

Please sign in to comment.