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.)
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
key2to be removed, but it looks likekey3gets removed completely:In this example, I'm just expecting
key2to be removed, but it looks likekey3gets partially removed:(It doesn't seem to matter if they're encoded as
%22instead.)