tomnomnom / qsreplace

Accept URLs on stdin, replace all query string values with a user-supplied value
MIT License
755 stars 123 forks source link

[question][feature request] Do we need one more positional parameter #4

Open storenth opened 3 years ago

storenth commented 3 years ago

Hi there, Test data from wayback machine and noted the next actual behavior:

echo "fr/prendre-rendez-vous?pageId" | qsreplace http://127.0.0.1:8080
fr/prendre-rendez-vous?pageId=http%3A%2F%2F127.0.0.1%3A8080

I expected the behavior to be:

fr/prendre-rendez-vous?pageId=http://127.0.0.1:8080

Any ideas? Please share your thoughts! Thanks!