Skip to content

Commit

Permalink
plugins/ia_writer.py: fix for .PNG etc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus committed Feb 18, 2022
1 parent 54e206c commit 3bc75c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/plugins/ia_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def edit_syntax_from_ai_writer_to_geekbook(text, img_prefix):
img_prefix += '/'

for line in textlist:
if line.startswith('/') and (line.endswith('.png') or line.endswith('.jpeg') or line.endswith('.gif')):
if line.startswith('/') and (line.lower().endswith('.png') or line.lower().endswith('.jpg') or line.lower().endswith('.jpeg') or line.lower().endswith('.gif')):
pfile = line.replace('/', '')
pfile_fullpath = PATH_TO_IMG + os.sep + IMG_PREFIX + os.sep + pfile

Expand Down

0 comments on commit 3bc75c0

Please sign in to comment.