[fonts] Fix download of fonts from google repository by encoding [ and ]

This commit is contained in:
Mathieu Pellerin 2024-10-20 10:43:07 +07:00 committed by Nyall Dawson
parent cc04caf627
commit 8377e5273d
2 changed files with 356 additions and 356 deletions

View File

@ -1585,7 +1585,7 @@ for p in path.rglob("*METADATA.pb"):
match = re.match(r'\s*filename: "(.*)"', line)
if match:
filenames.append(f'{github_path}/{match.group(1)}')
filenames.append(f'{github_path}/{match.group(1).replace("[", "%5B").replace("]", "%5D")}')
license_path = None
if not (p.parent / f'{license}.txt').exists():

File diff suppressed because it is too large Load Diff