-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I have some double quotes in the URLs that I'm working with, which leading to some weird issues when I try to remove parameters.
In this example, I'm just expecting key2 to be removed, but it looks like key3 gets removed completely:
> urltools::param_remove(
+ "http://example.com/page?key1=testing1&key2=\"testing2\"&key3=testing3",
+ keys = c("key2")
+ )
[1] "http://example.com/page?key1=testing1"In this example, I'm just expecting key2 to be removed, but it looks like key3 gets partially removed:
> urltools::param_remove(
+ "http://example.com/page?key1=testing1&key2=\"testing2\"&key3=testing3,testing4,testing5",
+ keys = c("key2")
+ )
[1] "http://example.com/page?key1=testing1&testing4,testing5"(It doesn't seem to matter if they're encoded as %22 instead.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels