Fix bug.(some site will broke when scanning _variables.scss)
This commit is contained in:
parent
3062dbb512
commit
e442c0060a
|
@ -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('')
|
||||
|
|
Loading…
Reference in New Issue