mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 00:37:49 +08:00
15 lines
497 B
Python
15 lines
497 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Common module
|
|
"""
|
|
from rebulk.remodule import re
|
|
|
|
seps = r' [](){}+*|=-_~#/\\.,;:' # list of tags/words separators
|
|
seps_no_groups = seps.replace('[](){}', '')
|
|
seps_no_fs = seps.replace('/', '').replace('\\', '')
|
|
|
|
title_seps = r'-+/\|' # separators for title
|
|
|
|
dash = (r'-', r'['+re.escape(seps_no_fs)+']') # abbreviation used by many rebulk objects.
|
|
alt_dash = (r'@', r'['+re.escape(seps_no_fs)+']') # abbreviation used by many rebulk objects.
|