Fix bug.(some site will broke when scanning _variables.scss)

This commit is contained in:
BoHung Chiu 2021-09-14 13:33:21 +08:00
parent 3062dbb512
commit e442c0060a
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ if bundle_update_flag
f.write tp_last_text
end
end
texts = texts.gsub(/\n{2,}/,"\n")
auto_save_array = texts.scan(regex_pattern)
if auto_save_array.count > 1
auto_save_text = auto_save_array.join('')