formatting / CORS changes
This commit is contained in:
@@ -111,8 +111,9 @@ class DataUtils:
|
||||
"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.lrc_regex = regex.compile( # capture mm:ss and optional .xxx, then the lyric text
|
||||
r"""
|
||||
self.lrc_regex = (
|
||||
regex.compile( # capture mm:ss and optional .xxx, then the lyric text
|
||||
r"""
|
||||
\[ # literal “[”
|
||||
( # 1st (and only) capture group:
|
||||
[0-9]{2} # two-digit minutes
|
||||
@@ -123,7 +124,8 @@ class DataUtils:
|
||||
\s* # optional whitespace
|
||||
(.*) # capture the rest of the line as words
|
||||
""",
|
||||
regex.VERBOSE,
|
||||
regex.VERBOSE,
|
||||
)
|
||||
)
|
||||
self.scrub_regex_1: Pattern = regex.compile(r"(\[.*?\])(\s){0,}(\:){0,1}")
|
||||
self.scrub_regex_2: Pattern = regex.compile(
|
||||
|
Reference in New Issue
Block a user