fix error

This commit is contained in:
chiu 2020-02-26 22:45:05 +08:00
parent 3a30ede63c
commit 371dfa015d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ all_template.each do |folder|
i = texts.rindex(s1[-1])
texts[i] = ""
end
regex_pattern = /.response-content {\n position: static;\n}\n|.response-content {\n position: relative;\n}\n|.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m
regex_pattern = /.response-content {\n position: static;\n}|.response-content {\n position: relative;\n}|.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m
if !texts.include? "$font-h1:"
texts = "$font-h1: 1.5rem;\n$font-h2: 1.35rem;\n$font-h3: 1.2rem;\n$font-h4: 1.1rem;\n$font-h5: 1rem;\n$font-h6: 0.9rem;\n\n" + texts
end