Skip to content

Commit

Permalink
Merge pull request twbs#12 from yabawock/issue-4
Browse files Browse the repository at this point in the history
Updated handling of less escaped strings (Closes twbs#4)
  • Loading branch information
sporkd committed Jul 30, 2013
2 parents 368bd4b + c22add4 commit 307fa54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def replace_image_paths(less)

def replace_escaping(less)
less = less.gsub(/\~"([^"]+)"/, '#{\1}') # Get rid of ~"" escape
#less.gsub(/(\W)e\("([^\)]+)"\)/) {|s| "#{$1 if $1 != /\s/}#{$2}"} # Get rid of e escape
less.gsub(/(\W)e\(%\((.*)\)\)/, '\1\2') # Get rid of e(%("")) escape
less.gsub!(/\${([^}]+)}/, '$\1') # Get rid of @{} escape
less.gsub(/(\W)e\(%\("?([^"]*)"?\)\)/, '\1\2') # Get rid of e(%("")) escape
end

def insert_default_vars(scss)
Expand Down

0 comments on commit 307fa54

Please sign in to comment.