mirror of https://github.com/sbt/sbt.git
Use raw methods on URI where a single string representation is constructed. URI(String) assumes no special characters.
This commit is contained in:
parent
0578a49e43
commit
945fdd5baa
|
|
@ -27,9 +27,9 @@ class RichURI(uri: URI)
|
|||
{
|
||||
if (hasMarkerScheme)
|
||||
if (hasFragment)
|
||||
new URI(uri.getSchemeSpecificPart + "#" + uri.getFragment)
|
||||
new URI(uri.getRawSchemeSpecificPart + "#" + uri.getRawFragment)
|
||||
else
|
||||
new URI(uri.getSchemeSpecificPart)
|
||||
new URI(uri.getRawSchemeSpecificPart)
|
||||
else
|
||||
uri
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue