This commit is contained in:
BoHung Chiu 2023-07-07 10:17:07 +08:00
parent 5a990fc245
commit 1f6e75f5e3
1 changed files with 1 additions and 1 deletions

View File

@ -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])