Skip to content

Commit

Permalink
Merge pull request #7 from shmargum/use-suffix
Browse files Browse the repository at this point in the history
use file suffix
  • Loading branch information
shmargum authored Dec 11, 2017
2 parents 0d4ffcd + 92f8786 commit 626fbf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/sass-colors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@


prefix_regex = /\/(?:stylesheets|sass|scss)\//
# suffix_regex = /\.(?:scss|sass|less)/
suffix_regex = /\.(?:scss|sass|less)/

current_file = ARGV[0]
#$suffix = current_file[suffix_regex]
$suffix = ".*"
$suffix = current_file[suffix_regex]
# $suffix = ".*"
current_dir = ARGV[0].sub(/\/[^\/]+$/,'')
style_root_key = current_file[prefix_regex]
if style_root_key
Expand Down

0 comments on commit 626fbf8

Please sign in to comment.