Quill editor has a rule named AutoFormatMultipleLinksRule that auto format HTTP(s) links, however there was a small caveat where path was mandatory if characters others than A-Z were used.
The problem is that the URL can contain fragments and query params without requiring an extra / as per RFC 3986 on URL structure:
scheme://host[:port][/path][?query][#fragment]
Examples of what the rule was handling before the fix:
Description
Quill editor has a rule named
AutoFormatMultipleLinksRule
that auto format HTTP(s) links, however there was a small caveat where path was mandatory if characters others than A-Z were used.The problem is that the URL can contain fragments and query params without requiring an extra
/
as per RFC 3986 on URL structure:Examples of what the rule was handling before the fix:
Proposed PR allows query params and fragments to be used even without a
/
character beforehand, thus respecting what the RFC is stating.Also, I removed the non-prefixed URL from the comments because as opposed to what what was said, it didn't work: