[PR #335] [MERGED] Fix glob pattern matching for filenames with special characters #304

Closed
opened 2026-10-30 21:22:10 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/335
Author: @serick4126
Created: 11/11/2025
Status: ✅ Merged
Merged: 11/11/2025
Merged by: @DominikDoom

Base: main ← Head: fix-glob-escape-bracket-filenames


📝 Commits (1)

  • e8858f6 Fix glob pattern matching for filenames with special characters

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 scripts/tag_autocomplete_helper.py (+3 -3)

📄 Description

Escape filenames in glob.glob() calls to properly handle files with special characters like brackets [].
Previously, these characters wereinterpreted as glob patterns, causing thumbnails and metadata to fail loading for affected files.

Changes:

  • get_json_info: Escape filename when searching for .json files
  • get_preview_thumbnail: Escape filename when searching for image files
  • get_lora_cached_hash: Escape lora_name when searching for model files

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/335 **Author:** [@serick4126](https://github.com/serick4126) **Created:** 11/11/2025 **Status:** ✅ Merged **Merged:** 11/11/2025 **Merged by:** [@DominikDoom](https://github.com/DominikDoom) **Base:** `main` ← **Head:** `fix-glob-escape-bracket-filenames` --- ### 📝 Commits (1) - [`e8858f6`](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/e8858f60bd868aab37f3727311a88e7b20c90c16) Fix glob pattern matching for filenames with special characters ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/tag_autocomplete_helper.py` (+3 -3) </details> ### 📄 Description Escape filenames in glob.glob() calls to properly handle files with special characters like brackets []. Previously, these characters wereinterpreted as glob patterns, causing thumbnails and metadata to fail loading for affected files. Changes: - get_json_info: Escape filename when searching for .json files - get_preview_thumbnail: Escape filename when searching for image files - get_lora_cached_hash: Escape lora_name when searching for model files --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-30 21:22:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#304
No description provided.