mirror of https://gitlab.com/bashrc2/epicyon
Quotes optional
parent
f6703325bd
commit
d34b1ef700
|
@ -2247,7 +2247,7 @@ def getFontFromCss(css: str) -> (str, str):
|
||||||
"""
|
"""
|
||||||
if ' url(' not in css:
|
if ' url(' not in css:
|
||||||
return None, None
|
return None, None
|
||||||
fontName = css.split(" url('")[1].split("')")[0]
|
fontName = css.split(" url(")[1].split(")")[0].replace("'", '')
|
||||||
fontFormat = css.split(" format('")[1].split("')")[0]
|
fontFormat = css.split(" format('")[1].split("')")[0]
|
||||||
return fontName, fontFormat
|
return fontName, fontFormat
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue