[F] Fix list_distros compatibility

This commit is contained in:
Azalea 2023-06-02 00:24:31 -07:00
parent fac90ec5d3
commit ca3c887b61

View file

@ -15,7 +15,7 @@ from hypy_utils import write
from hyfetch.distros import AsciiArt from hyfetch.distros import AsciiArt
RE_SPLIT = regex.compile('EOF[ \n]*?;;') RE_SPLIT = regex.compile('EOF[ \n]*?;;')
RE_COLORS = regex.compile("""(?<=set_colors )[a-z\\d ]+(?=\n)""") RE_COLORS = regex.compile("""(?<=set_colors )[\"#a-z\\d ]+(?=\n)""")
def substr(s: str, start: str, end: str | None = None): def substr(s: str, start: str, end: str | None = None):