Permalink
Browse files

Merge pull request #99 from schorfES/fix-almondify-path

Fix almond path when '.js' appears more than once in path
  • Loading branch information...
2 parents 342dc23 + 0511eef commit 06fb18adc2717a7aaa53f8a8de770db9cdb07708 @asciidisco committed Jul 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/almondify.js
View
@@ -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

0 comments on commit 06fb18a

Please sign in to comment.