Skip to content

Commit

Permalink
Merge pull request asciidisco#99 from schorfES/fix-almondify-path
Browse files Browse the repository at this point in the history
Fix almond path when '.js' appears more than once in path
  • Loading branch information
asciidisco committed Jul 8, 2014
2 parents 342dc23 + 0511eef commit 06fb18a
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 06fb18a

Please sign in to comment.