Uri.removeFragment() corrupts URIs #24593
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-core
If I run
Uri.parse("foo:bar#baz").removeFragment().toString()
, I get"foo://:0bar?"
, where I'd just expect"foo:bar"
. This is particularly problematic for working withdata:
URIs, which aren't at all structured like typical hierarchical URIs and whose fragments must be ignored.The text was updated successfully, but these errors were encountered: