mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-18 20:31:38 +02:00
fix git conflict commited by accident
This commit is contained in:
@@ -60,14 +60,12 @@ URL_REGEX = re.compile(
|
|||||||
re.IGNORECASE,
|
re.IGNORECASE,
|
||||||
)
|
)
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
COLOR_REGEX = re.compile(r'\[(?P<arg_1>\d+)(;(?P<arg_2>\d+)(;(?P<arg_3>\d+))?)?m')
|
COLOR_REGEX = re.compile(r'\[(?P<arg_1>\d+)(;(?P<arg_2>\d+)(;(?P<arg_3>\d+))?)?m')
|
||||||
=======
|
|
||||||
def is_static_file(url: str):
|
def is_static_file(url: str):
|
||||||
# TODO: the proper way is with MIME type detection + ext, not only extension
|
# TODO: the proper way is with MIME type detection + ext, not only extension
|
||||||
from .config import STATICFILE_EXTENSIONS
|
from .config import STATICFILE_EXTENSIONS
|
||||||
return extension(url).lower() in STATICFILE_EXTENSIONS
|
return extension(url).lower() in STATICFILE_EXTENSIONS
|
||||||
>>>>>>> c1fe068... remove circular import possibilities
|
|
||||||
|
|
||||||
|
|
||||||
def enforce_types(func):
|
def enforce_types(func):
|
||||||
|
Reference in New Issue
Block a user