Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
pattern matching come from the watcher not from the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Auriac committed May 31, 2016
1 parent 7226180 commit cb4f673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/sass/runner.rb
Expand Up @@ -90,7 +90,7 @@ def get_output_dir(file)

unless options[:shallow]
@watchers.product([file]).each do |watcher, file|
if matches = file.match(watcher.pattern)
if matches = watcher.pattern.match(file)
if matches[1]
folder = File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '')
break
Expand Down

0 comments on commit cb4f673

Please sign in to comment.