{"action":"created","issue":{"url":"https://api.github.com/repos/medialize/URI.js/issues/204","labels_url":"https://api.github.com/repos/medialize/URI.js/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/medialize/URI.js/issues/204/comments","events_url":"https://api.github.com/repos/medialize/URI.js/issues/204/events","html_url":"https://github.com/medialize/URI.js/pull/204","id":65636359,"number":204,"title":"removeQuery accepts RegExp that filters the keys","user":{"login":"peterwillis","id":653756,"avatar_url":"https://avatars.githubusercontent.com/u/653756?v=3","gravatar_id":"","url":"https://api.github.com/users/peterwillis","html_url":"https://github.com/peterwillis","followers_url":"https://api.github.com/users/peterwillis/followers","following_url":"https://api.github.com/users/peterwillis/following{/other_user}","gists_url":"https://api.github.com/users/peterwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/peterwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterwillis/subscriptions","organizations_url":"https://api.github.com/users/peterwillis/orgs","repos_url":"https://api.github.com/users/peterwillis/repos","events_url":"https://api.github.com/users/peterwillis/events{/privacy}","received_events_url":"https://api.github.com/users/peterwillis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medialize/URI.js/labels/Feature","name":"Feature","color":"0b02e1"},{"url":"https://api.github.com/repos/medialize/URI.js/labels/QueryString","name":"QueryString","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-01T08:52:30Z","updated_at":"2015-04-01T23:51:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/medialize/URI.js/pulls/204","html_url":"https://github.com/medialize/URI.js/pull/204","diff_url":"https://github.com/medialize/URI.js/pull/204.diff","patch_url":"https://github.com/medialize/URI.js/pull/204.patch"},"body":"I added RegExp support to the removeQuery function. It is a bit like passing a string, except if uses the regexp to filter out keys that match the expression. I added a test and updated the docs too."},"comment":{"url":"https://api.github.com/repos/medialize/URI.js/issues/comments/88666684","html_url":"https://github.com/medialize/URI.js/pull/204#issuecomment-88666684","issue_url":"https://api.github.com/repos/medialize/URI.js/issues/204","id":88666684,"user":{"login":"peterwillis","id":653756,"avatar_url":"https://avatars.githubusercontent.com/u/653756?v=3","gravatar_id":"","url":"https://api.github.com/users/peterwillis","html_url":"https://github.com/peterwillis","followers_url":"https://api.github.com/users/peterwillis/followers","following_url":"https://api.github.com/users/peterwillis/following{/other_user}","gists_url":"https://api.github.com/users/peterwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/peterwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterwillis/subscriptions","organizations_url":"https://api.github.com/users/peterwillis/orgs","repos_url":"https://api.github.com/users/peterwillis/repos","events_url":"https://api.github.com/users/peterwillis/events{/privacy}","received_events_url":"https://api.github.com/users/peterwillis/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T23:51:03Z","updated_at":"2015-04-01T23:51:03Z","body":"What I mean is that in hasQuery, the first parameter is the key selector, the second is the value selector, so if the first argument is always a key selector in the methods, the API is consistent.\r\n\r\nI can appreciate that someone may want to filter out an option in the query if a value matches a regexp. That would be an additional way of using removeQuery where the value regexp is passed as the second argument, rather than a replacement for this.\r\n\r\nI can submit that in another pr if it is also useful?\r\n\r\n"}}