-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script deletes used images if file extensions are capitals e.g. .JPG #7
Comments
Seems to be caused by this RegExp not matching case insensitively (and your images are
|
Thanks!
|
Confirmed.... If the case of the file extension is not all-lower on disc, then the files are removed - even if they are used, and used with consistent extensions in the markdown. Thank you for working out the cause... |
I just released a version, in which the check for image extension is not case sensitive. |
Thanks very much! And thanks to @lishid for spotting the cause... I've done the following tests - all successful: 🎉
|
This plugin deletes images that are linked.
I was able to restore them from version control, so I'm OK... but still...
Environment
Demonstration
Here are some existing links to images:
When I run "Clear unused images" I get this output, showing me that all those linked images were deleted:
The text was updated successfully, but these errors were encountered: