Skip to content

Commit

Permalink
PY-77275 Jupyter(fix): Improve connections in Jupyter
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 3b56e88dbb128c9c8e336a92cbd87f22d1dcfe6b
  • Loading branch information
Nikita.Ashihmin authored and intellij-monorepo-bot committed Dec 7, 2024
1 parent d5f9083 commit abbfd57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ fun URIBuilder.dropLastPathSegment(): URIBuilder {
* ```
*/
fun URI.addPathSegment(string: String): URI = URIBuilder(this).addPathSegment(string).build()
fun URI.getPathSegments(): List<String> = path.split("/")
fun URI.getPathSegments(): List<String> = (path ?: "").split("/")
fun URI.dropLastPathSegment(): URI = URIBuilder(this).dropLastPathSegment().build()
fun URI.addQuery(name: String, value: String): URI = URIBuilder(this).addParameter(name, value).build()

0 comments on commit abbfd57

Please sign in to comment.