Fix bug.
This commit is contained in:
parent
5a990fc245
commit
1f6e75f5e3
|
@ -53,7 +53,7 @@ if bundle_update_flag
|
|||
filename = folder+'assets/stylesheets/template/base/_variables.scss'
|
||||
texts = File.open(filename,'r:UTF-8') do |f|
|
||||
f.read
|
||||
end.force_encoding('UTF-8')
|
||||
end.force_encoding('UTF-8').gsub(/(\r\n){2,}/, "\r\n")
|
||||
s1 = texts.scan(/{|}/)
|
||||
if s1.count % 2 != 0
|
||||
i = texts.rindex(s1[-1])
|
||||
|
|
Loading…
Reference in New Issue