Fixed url exclusion detection for progress bars.
This commit is contained in:
		| @@ -393,12 +393,10 @@ class command: | |||||||
|         """Check if text contains URLs that might cause false progress detection""" |         """Check if text contains URLs that might cause false progress detection""" | ||||||
|         import re |         import re | ||||||
|          |          | ||||||
|         # Common URL patterns that might contain progress-like patterns |         # Specific URL patterns - only match actual URLs, not filenames | ||||||
|         url_patterns = [ |         url_patterns = [ | ||||||
|             r"https?://[^\s]+",           # http:// or https:// URLs |             r"\S+://\S+\.\S{2,}",         # Any protocol:// with domain.ext | ||||||
|             r"ftp://[^\s]+",              # ftp:// URLs |             r"www\.[^\s]+\.[a-zA-Z]{2,}",  # www.domain.ext patterns | ||||||
|             r"www\.[^\s]+",               # www. domains |  | ||||||
|             r"[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}[/\w.-]*",  # domain.com/path patterns |  | ||||||
|         ] |         ] | ||||||
|          |          | ||||||
|         for pattern in url_patterns: |         for pattern in url_patterns: | ||||||
|   | |||||||
| @@ -4,6 +4,6 @@ | |||||||
| # Fenrir TTY screen reader | # Fenrir TTY screen reader | ||||||
| # By Chrys, Storm Dragon, and contributors. | # By Chrys, Storm Dragon, and contributors. | ||||||
|  |  | ||||||
| version = "2025.07.17" | version = "2025.07.21" | ||||||
| codeName = "testing" | codeName = "testing" | ||||||
| code_name = "testing" | code_name = "testing" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user