Quotes optional

merge-requests/30/head
Bob Mottram 2020-07-18 18:38:58 +01:00
parent f6703325bd
commit d34b1ef700
1 changed files with 1 additions and 1 deletions

View File

@ -2247,7 +2247,7 @@ def getFontFromCss(css: str) -> (str, str):
"""
if ' url(' not in css:
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]
return fontName, fontFormat