Merge branch 'bug/optimize-collection-images' into 'develop'
Bug/optimize collection images See merge request gm/gm-backend!226
This commit is contained in:
commit
92f349d8e7
|
|
@ -207,7 +207,7 @@ def section_name_into_index_name(section_name: str):
|
|||
|
||||
def get_url_images_in_text(text):
|
||||
"""Find images urls in text"""
|
||||
return re.findall(r'\<img.+src=(?!https?:\/\/)([^\/].+?)[\"|\']>', text)
|
||||
return re.findall(r'\<img.+src="([^"]+)".+>', text)
|
||||
|
||||
|
||||
def get_image_meta_by_url(url) -> (int, int, int):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user