             file = "#{path}/#{file}"
             stat = fs.statSync file
 
-            if stat.isFile() and /\.coffee$/.test file then result.push file
+            if stat.isFile() and REGEX_IS_FILETYPE.test file then result.push file
             else if stat.isDirectory() then traverse file, result
 
         result

                        # Testing if file exists for each iteration to allow for '.' in filenames (ie. jquery.plugin.js) when using dot syntax in imports
                        while not map[ key ]
                            failedKey = key
                            target = target.replace /\.(?!coffee)/, '/'
                            key = [ source, target ].join '/'
                            if key is failedKey then grunt.fail.warn("No file matching import: #{key}")


    --------------------------------------------------
    ###

    FILETYPE = 'coffee'
    REGEX_IS_FILETYPE = /\.coffee$/
    REGEX_IS_NOT_FILETYPE = /\.(?!coffee)/
    REGEX_FILENAME = /\.\w+$/i
    REGEX_IMPORT = /#\s?import\s+?([\w\.\-\/\*]+)/g

