Merge branch 'bug/news_optimize' into 'develop'
fix regex for find images See merge request gm/gm-backend!209
This commit is contained in:
commit
48e15a047a
|
|
@ -189,7 +189,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'[^"\'=\s]+\.(jpe?g|png|gif|svg)', text)
|
||||
return re.findall(r'[^\"\'=\s]+\.jpe?g|png|gif|svg', text)
|
||||
|
||||
|
||||
def get_image_meta_by_url(url) -> (int, int, int):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user