Skip to content

Commit

Permalink
Fix almond path when '.js' appears more than once in path
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Rusch committed Jul 8, 2014
1 parent 342dc23 commit 0511eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/almondify.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports.init = function(grunt) {
configClone.paths = configClone.paths || {};

// set almond path
configClone.paths.almond = require.resolve('almond').replace('.js', '');
configClone.paths.almond = require.resolve('almond').replace(/\.js$/, '');

// check if the 'removeCombined' option is enabled
// then use a temporary almond file to ensure that the
Expand Down

0 comments on commit 0511eef

Please sign in to comment.