It's version 0.6.2 I clear code
This commit is contained in:
@@ -92,8 +92,8 @@ class ScheduleService:
|
||||
return result, url, day, month
|
||||
|
||||
|
||||
|
||||
def exact_group_regex(self, group: str) -> re.Pattern:
|
||||
@staticmethod
|
||||
def exact_group_regex(group: str) -> re.Pattern:
|
||||
# ищем как отдельный токен: граница слева/справа или начало/конец
|
||||
pattern = rf"(^|{BOUNDARY}){re.escape(group)}({BOUNDARY}|$)"
|
||||
return re.compile(pattern)
|
||||
|
||||
Reference in New Issue
Block a user