fix(agents): restrict opaque URI exemptions to parsed links

This commit is contained in:
4gray committed 2026-09-21 03:57:50 +02:00
1 parent 8d798e050b
commit 71b7204ca0
3 files changed
+26 -2

No files matched your search

+2 -1
View File
@@ -73,7 +73,8 @@ including references whose semicolon may be omitted.
Inline guidance imports are rejected after punctuation as well as whitespace.
At-signs inside external URIs (including explicit opaque autolinks such as mailto) are excluded
per HTML text node, preserving adjacent imports. A colon directly before an import
does not make that import a URI.
does not make that import a URI. Opaque schemes are excluded only in parsed links
whose visible text equals their URI, so colon-labeled prose remains checked.
A closing bracket followed by punctuation and an at-sign terminates a bare URL exclusion.
Extensionless inline candidates are also imports when they resolve to repository files,
checking the full filename before prefixes at ASCII/Unicode prose separators.